Browsed by
Month: February 2016

Install Puppet 4 (Open-source Version)

Install Puppet 4 (Open-source Version)

Puppet 4 Master with PuppetDB, and SSL. Puppet 4 Management TL;DR Service: Start: service puppetserver start Stop: service puppetserver stop Agent Run: puppet agent -t Configs: /etc/puppetlabs/puppet Manifests: /etc/puppetlabs/code Logs: /var/log/puppetlabs SSL Certs: /etc/puppetlabs/puppet/ssl Ports: puppetserver: 8140 mcollective (not covered here): 61613 The System We assume you already have a server. These instructions are geared to running on Ubuntu 14.04LTS. If you are using another OS, YMMV. I’m running in Azure on a Standard_D2_v2 (2 core 7GB system). This is…

Read More Read More

Configure Storage on the Fly with Puppet 4

Configure Storage on the Fly with Puppet 4

Here’s a snippet of puppet I’m using to configure storage. Now whenever I add new disks to the instance, puppet will expand the storage for me. I apply this before I install the docker-engine package. package { ‘lvm2’: } $::disks.each |$d, $v| { if ($d =~ /^sd[c-z]+/) { # Create pv if not a pv exec { “/sbin/pvcreate /dev/${d}”: unless => “/sbin/pvs –noheadings /dev/${d}”, } # Create VG if not exists exec { “/sbin/vgcreate ${vg} /dev/${d}”: unless => “/sbin/vgs ${vg}”,…

Read More Read More