1) Create a new directory or file (with content) node "UT-9c8e99e3959e"{ file { "/tmp/test_directory": ensure => "directory", owner => "root", group => "root", mode => 755,} file { "/tmp/test_directory/test_file": ensure => "present", content => "puppet test" owner => "jchen", group => "jchen", mode => 755,} } Example: generic@UT-9c8e99e3959e:/tmp$ sudo puppet agent --test info: Caching catalog … Continue reading Puppet File Configuration Example
Category: Linux
Puppet Package Configuration Examples
1) Install the xpad package node "UT-9c8e99e3959e"{ package { "xpad": ensure => "installed"} } Example: generic@UT-9c8e99e3959e:~$ dpkg-query -l xpad dpkg-query: no packages found matching xpad generic@UT-9c8e99e3959e:~$ sudo puppet agent --test info: Caching catalog for ut-9c8e99e3959e info: Applying configuration version '1361592519' notice: /Stage[main]//Node[ut-9c8e99e3959e]/Package[xpad]/ensure: ensure changed 'purged' to 'present' notice: Finished catalog run in 18.87 seconds generic@UT-9c8e99e3959e:~$ … Continue reading Puppet Package Configuration Examples
Ubuntu Wallpaper of the Day
My inspiration of the 'Wallpaper of the Day' comes from the Nation Geographic Photo of the Day. National Geographic recommends an amazing photo each day on this web site. I wrote a bash script to automatically set the photo as my desktop background everyday when I start my Ubuntu laptop. Create the following script then add … Continue reading Ubuntu Wallpaper of the Day
Blogilo Proxy Settings
To make Blogilo work behind a proxy, I edited this file ~/.kde/share/config/kioslaverc in my Ubuntu laptop (there is no proxy settings in the Blogilo UI).[$Version]update_info=kioslave.upd:kde2.2/r1,kioslave.upd:kde2.2/r2,kioslave.upd:kde2.2/r3[Proxy Settings][$i] ProxyType=1 httpProxy=http://proxy-server:8080httpsProxy=http://proxy-server:8080ftpProxy=http://proxy-server:8080
Auto deploy Puppet Agent
Continue with my previous Puppet and Puppet dashboard installation, now I start to deploy the agent to all my Ubuntu desktops. I wrote a script to do the dirty work. Pre-requisite package: expect (no need if use passwordless ssh, but you need to change the script slightly). How to use: 1) Create the following 4 scripts … Continue reading Auto deploy Puppet Agent