Skip to content

Instantly share code, notes, and snippets.

@vml-jglenn
Created November 4, 2014 22:03
Show Gist options
  • Save vml-jglenn/af4915e05108d8b887c0 to your computer and use it in GitHub Desktop.
Save vml-jglenn/af4915e05108d8b887c0 to your computer and use it in GitHub Desktop.
#/etc/puppet/environments/production/manifests/java01.pp
node 'java01.example.lan' inherits default {
file { '/etc/httpd/ssl':
ensure => 'directory',
owner => 'root',
group => 'root',
mode => '0640',
recurse => 'remote',
source => 'puppet:///files/ssl/example.com',
}
class { 'apache':
serveradmin => '[email protected]',
vhost_dir => '/etc/httpd/vhosts.d',
}
class { 'apache::mod::authnz_ldap': }
file { [ '/var/www',
'/var/www/vhosts',
]:
ensure => 'directory',
owner => 'root',
group => 'root',
mode => '0755',
}
class { 'apache':
serveradmin => '[email protected]',
vhost_dir => '/etc/httpd/vhosts.d',
}
class { 'apache::mod::status':
allow_from => ['10.200.61.192'],
}
package { 'tomcat':
ensure => installed,
}
service { 'tomcat.service':
ensure => 'running',
enable => 'true',
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment