Skip to content

Instantly share code, notes, and snippets.

@gnilchee
Last active August 29, 2015 14:10
Show Gist options
  • Save gnilchee/7a1c260d8de968c4da22 to your computer and use it in GitHub Desktop.
Save gnilchee/7a1c260d8de968c4da22 to your computer and use it in GitHub Desktop.
puppet manifest ensuring all lamp components are running and enabled
if versioncmp($::puppetversion,'3.7.3') >= 0 {
$allow_virtual_packages = hiera('allow_virtual_packages',false)
Package {
allow_virtual => $allow_virtual_packages,
}
}
node 'node_name' {
service { 'mariadb.service':
enable => true,
ensure => running,
}
service { 'httpd':
enable => true,
ensure => running,
}
service { 'sshd':
enable => true,
ensure => running,
}
service { 'firewalld':
enable => true,
ensure => running,
}
service { 'puppet':
enable => false,
ensure => stopped,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment