Skip to content

Instantly share code, notes, and snippets.

@php-coder
Last active January 4, 2016 03:49
Show Gist options
  • Save php-coder/8564329 to your computer and use it in GitHub Desktop.
Save php-coder/8564329 to your computer and use it in GitHub Desktop.
#!/bin/sh
exec puppet apply --modulepath="$PWD/my/modules" --verbose my/manifests/site.pp "$@"
class my::server {
include my::server::user
}
#!/bin/sh
CODENAME="$(lsb_release -c | awk '{print $2}')"
PACKAGE="puppetlabs-release-$CODENAME.deb"
wget -- "http://apt.puppetlabs.com/$PACKAGE"
dpkg -i "$PACKAGE"
rm -fv -- "$PACKAGE"
apt-get update
apt-get -y install puppet
include my::server
class my::server::user {
user { 'coder':
ensure => 'present',
comment => 'Slava Semushin',
home => '/home/coder',
managehome => true,
shell => '/bin/sh'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment