Create basic roles and profiles
This commit is contained in:
parent
5a8c49858c
commit
f6a03c7d34
@ -26,18 +26,4 @@ File { backup => false }
|
||||
# Puppet Enterprise console and External Node Classifiers (ENC's).
|
||||
#
|
||||
# For more on node definitions, see: https://puppet.com/docs/puppet/latest/lang_node_definitions.html
|
||||
node default {
|
||||
class { 'ntp':
|
||||
servers => [ '0.us.pool.ntp.org', '1.us.pool.ntp.org', '2.us.pool.ntp.org', '3.us.pool.ntp.org' ],
|
||||
}
|
||||
}
|
||||
node puppet.test.com {
|
||||
include ngrok
|
||||
ngrok::tunnel { 'webhook':
|
||||
proto => 'tcp',
|
||||
addr => '8170',
|
||||
}
|
||||
class { 'ntp':
|
||||
servers => [ '0.us.pool.ntp.org', '1.us.pool.ntp.org', '2.us.pool.ntp.org', '3.us.pool.ntp.org' ],
|
||||
}
|
||||
}
|
||||
node default {}
|
||||
|
@ -1,5 +0,0 @@
|
||||
class profile::base {
|
||||
|
||||
#the base profile should include component modules that will be on all nodes
|
||||
|
||||
}
|
6
site-modules/profile/manifests/base/linux.pp
Normal file
6
site-modules/profile/manifests/base/linux.pp
Normal file
@ -0,0 +1,6 @@
|
||||
# Base profile for linux nodes
|
||||
class profile::base::linux {
|
||||
class { 'ntp':
|
||||
servers => [ '0.us.pool.ntp.org', '1.us.pool.ntp.org', '2.us.pool.ntp.org', '3.us.pool.ntp.org' ],
|
||||
}
|
||||
}
|
2
site-modules/profile/manifests/base/windows.pp
Normal file
2
site-modules/profile/manifests/base/windows.pp
Normal file
@ -0,0 +1,2 @@
|
||||
# Base profile for Windows nodes
|
||||
class profile::base::windows {}
|
1
site-modules/profile/manifests/puppet/cd4pe.pp
Normal file
1
site-modules/profile/manifests/puppet/cd4pe.pp
Normal file
@ -0,0 +1 @@
|
||||
class profile::puppet::cd4pe {}
|
7
site-modules/profile/manifests/puppet/master.pp
Normal file
7
site-modules/profile/manifests/puppet/master.pp
Normal file
@ -0,0 +1,7 @@
|
||||
class profile::puppet::master {
|
||||
include ngrok
|
||||
ngrok::tunnel { 'webhook':
|
||||
proto => 'tcp',
|
||||
addr => '8170',
|
||||
}
|
||||
}
|
4
site-modules/role/manifests/basic_linux.pp
Normal file
4
site-modules/role/manifests/basic_linux.pp
Normal file
@ -0,0 +1,4 @@
|
||||
# Role for basic linux node
|
||||
class role::basic_linux {
|
||||
include profile::base::linux
|
||||
}
|
4
site-modules/role/manifests/basic_windows.pp
Normal file
4
site-modules/role/manifests/basic_windows.pp
Normal file
@ -0,0 +1,4 @@
|
||||
# Role for basic Windows node
|
||||
class role::basic_windows {
|
||||
include profile::base::windows
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
class role::database_server {
|
||||
|
||||
#This role would be made of all the profiles that need to be included to make a database server work
|
||||
#All roles should include the base profile
|
||||
include profile::base
|
||||
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
class role::example {
|
||||
|
||||
}
|
5
site-modules/role/manifests/master.pp
Normal file
5
site-modules/role/manifests/master.pp
Normal file
@ -0,0 +1,5 @@
|
||||
# Role for puppet master
|
||||
class role::master {
|
||||
include profile::base::linux
|
||||
include profile::puppet::master
|
||||
}
|
Loading…
Reference in New Issue
Block a user