Skip to content

Instantly share code, notes, and snippets.

View duritong's full-sized avatar

duritong duritong

View GitHub Profile
@duritong
duritong / commands.rb
Created November 3, 2011 09:01 — forked from masterzen/commands.rb
Puppet Extension Point - part 2
commands ping => "/usr/bin/ping"
...
# we can use it later with:
# ping "www.puppetlabs.com"
package{'postgresql-server':
ensure => present,
}
service{'postgresql':
enable => true,
ensure => running,
hasstatus => true,
require => Package[postgresql-server],
}
file{'/var/lib/pgsql/data/pg_hba.conf':
NICE but not working:
site-mysql/init.pp
class site-mysql inherits mysql {
# operations user
mysql_user{'[email protected].%':
password_hash => "*DEE65258DA0F2513DE84AD4C1E15557C65602548"
}
mysql_grant{'[email protected].%':
privileges => 'all',