Create basic roles and profiles

This commit is contained in:
Heston Snodgrass 2019-11-21 14:00:30 -07:00
parent 5a8c49858c
commit f6a03c7d34
11 changed files with 30 additions and 30 deletions

View File

@ -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 {}

View File

@ -1,5 +0,0 @@
class profile::base {
#the base profile should include component modules that will be on all nodes
}

View 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' ],
}
}

View File

@ -0,0 +1,2 @@
# Base profile for Windows nodes
class profile::base::windows {}

View File

@ -0,0 +1 @@
class profile::puppet::cd4pe {}

View File

@ -0,0 +1,7 @@
class profile::puppet::master {
include ngrok
ngrok::tunnel { 'webhook':
proto => 'tcp',
addr => '8170',
}
}

View File

@ -0,0 +1,4 @@
# Role for basic linux node
class role::basic_linux {
include profile::base::linux
}

View File

@ -0,0 +1,4 @@
# Role for basic Windows node
class role::basic_windows {
include profile::base::windows
}

View File

@ -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
}

View File

@ -1,3 +0,0 @@
class role::example {
}

View File

@ -0,0 +1,5 @@
# Role for puppet master
class role::master {
include profile::base::linux
include profile::puppet::master
}