Sunday, May 26, 2013
Review of Puppet NTP
Posting an example which helps me remember what I learned about puppet a week ago; an NTP class which hasn't yet been converted into a module from Learning — Modules and Classes (Part One). I borrowed the HTML/CSS from puppetlabs.com.
class ntp {
case $operatingsystem {
centos, redhat: {
$service_name = 'ntpd'
$conf_file = 'ntp.conf.el'
}
debian, ubuntu: {
$service_name = 'ntp'
$conf_file = 'ntp.conf.debian'
}
}
package { 'ntp':
ensure => installed,
}
service { 'ntp':
name => $service_name,
ensure => running,
enable => true,
subscribe => File['ntp.conf'],
}
file { 'ntp.conf':
path => '/etc/ntp.conf',
ensure => file,
require => Package['ntp'],
source => "/root/learning-manifests/${conf_file}",
}
}
Sunday, May 19, 2013
Learning Puppet: Modules & Classes
I am having a good time leaning puppet and have finished up to Modules & Classes for today. One thing we need where I work is a way to insure that PHP is set up consistently and thias/php might do the trick. Checking it out...
[root@learn ~]# puppet module install thias-php Preparing to install into /etc/puppetlabs/puppet/modules ... Downloading from http://forge.puppetlabs.com ... Installing -- do not interrupt ... /etc/puppetlabs/puppet/modules └── thias-php (v0.2.5) [root@learn ~]#
Tuesday, May 14, 2013
USB to RS-232
Today I received my USB to Serial Converter for connecting my laptop to an RS-232 serial device. Cisco has a cheat sheet for using screen to connect to their gear.
Sunday, May 12, 2013
Personal OpenStack via Crowbar
Crowbar was made to easily deploy OpenStack. Here are two 10 minute videos showing how to install Crowbar:
and then install OpenStack on top of it.
The narrator, Rob Hirscheld, does it all on one physical box using a couple of VMs.
and then install OpenStack on top of it.
The narrator, Rob Hirscheld, does it all on one physical box using a couple of VMs.
Subscribe to:
Posts (Atom)