manifests

This commit is contained in:
root 2018-12-04 16:29:37 +00:00
parent f69ffd8ce1
commit afc34ae90e
3 changed files with 53 additions and 6 deletions

View File

@ -2,16 +2,16 @@ forge 'https://forge.puppet.com'
# Modules from the Puppet Forge
# Versions should be updated to be the latest at the time you start
#mod 'puppetlabs/inifile', '2.2.1'
#mod 'puppetlabs/stdlib', '4.25.1'
mod 'puppetlabs/ntp', '4.2.0'
mod 'puppetlabs/haproxy', '4.11.0'
#mod 'puppetlabs/concat', '4.2.1'
# Modules from Git
# Examples: https://github.com/puppetlabs/r10k/blob/master/doc/puppetfile.mkd#examples
#mod 'apache',
# :git => 'https://github.com/puppetlabs/puppetlabs-apache',
mod 'tomcat',
:git => 'https://github.com/hejdajan/puppet-module-tomcat.git',
# :commit => 'de290646f97e04b4b8e42c70f6e01e860c394ce7'
#mod 'apache',
# :git => 'https://github.com/puppetlabs/puppetlabs-apache',
mod 'java',
:git => 'https://github.com/hejdajan/puppet-module-java.git',
# :branch => 'docs_experiment'

25
manifests/app.pp Normal file
View File

@ -0,0 +1,25 @@
node 'node1' {
class { 'tomcat':
xmx => '129m',
xms => '69m',
user => 'tomcat',
group => 'root',
}
include base
}
node default {
}
node 'node2' {
include base
include java::install
class { 'tomcat':
xmx => '127m',
xms => '67m',
user => 'tomcat',
group => 'root',
}
}

View File

@ -0,0 +1,22 @@
node 'node4' {
include ::haproxy
haproxy::listen { 'lb-01':
collect_exported => false,
ipaddress => $::ipaddress,
ports => '80',
}
haproxy::balancermember { 'node1':
listening_service => 'lb-01',
server_names => 'node1',
ipaddresses => '172.18.0.2',
ports => '8080',
options => 'check',
}
haproxy::balancermember { 'node2':
listening_service => 'lb-01',
server_names => 'node2',
ipaddresses => '172.18.0.5',
ports => '8080',
options => 'check',
}
}