Skip to content

Instantly share code, notes, and snippets.

@gnilchee
Last active August 29, 2015 14:10
Show Gist options
  • Save gnilchee/b9b88107e4b89323f16d to your computer and use it in GitHub Desktop.
Save gnilchee/b9b88107e4b89323f16d to your computer and use it in GitHub Desktop.
puppet manifest ensure vital lamp components installed.
if versioncmp($::puppetversion,'3.7.3') >= 0 {
$allow_virtual_packages = hiera('allow_virtual_packages',false)
Package {
allow_virtual => $allow_virtual_packages,
}
}
node 'node_name' {
$lamp = [ "puppet", "firewalld", "openssl", "mariadb-server", "mariadb", "httpd", "bash", "php", "php-mysql", "php-gd" ]
package { $lamp: ensure => "latest" }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment