Sebastian Mogilowskis Blog

Just another blog about administration, linux and other stuff

puppet

Install Sun Java with Puppet on Ubuntu

Sun wants you to agree to its license before installing the JRE/JDK. For an unattended install you need a preseed file. You get the content of this file with “debconf-get-selections | grep sun-“ on a system where you have already installed the required packages. Create a file “/etc/puppet/files/sun-java6.preseed” with the following example content: sun-java6-bin shared/accepted-sun-dlj-v1-1 […]

, , ,

Puppet Dashboard / Reports – Ubuntu

Puppet reports with “Puppet Dashboard“: Installation: Add the following lines to your “/etc/apt/sources.list” file: deb http://apt.puppetlabs.com/ubuntu lucid main deb-src http://apt.puppetlabs.com/ubuntu lucid main Run aptitude update to updates your packet list. If you get an “GPG error” because the public key is not available than add the Puppet Labs repository key to APT. (NO_PUBKEY 1054B7A24BD6EC30) run: […]

, , ,

Servermanagement with puppet – Part 4

Puppet facts Note: This article based on Part 1 – Part 3 of my puppet articles. Please read them first ! Factor allows to you add information from your nodes to your puppet configuration. Facts are available as variables. Execute the “facter” command and you get a full list of facts an their values: sebastian@pc1:~$ […]

, ,

Servermanagement with puppet – Part 3

In the 3. part we configurate the puppet clients to reports at the end of every configuration run. This reports are stored on the puppetmaster. Configurate client Enable reporting on the puppet client “/etc/puppet/puppet.conf“: [puppetd] report = true Configurate puppetmaster Activate reporting on the puppetmaster”/etc/puppet/puppet.conf“: [puppetmasterd] templatedir=/var/lib/puppet/templates reports = store,log,rrdgraph Note: See reporttypes below. (reports) […]

, ,

Servermanagement with puppet – Part 2

Now we want to create a clear strukture for the puppet configuration files. The config in Part 1 is only a simple example to test the configuration. In this example we want to create the user “sebastian” and “demo” on all servers with a specific password. 1. Templates ”/etc/puppet/manifests/templates.pp”: This files defines various classes of […]

, , , ,

Servermanagement with puppet – Part 1

The Environment: Hosts: puppetmaster: The puppetmaster pc1: The first testclient pc2: The second testclient Domain: domain.local Note: I used Ubuntu 9.04 in all servers. Puppetmaster installation aptitude install puppetmaster Activate fileserver for the local network (”/etc/puppet/fileserver.conf”): [files] path /etc/puppet/files allow *.domain.local [plugins] path /etc/puppet/files allow *.domain.local Note:You can allow a subnet, too. (”allow 192.168.0.0/24”). Edit […]

, , ,