Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add onceover and remove windowsrole #80

Open
wants to merge 166 commits into
base: production
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
e408957
test Commit
Aug 28, 2019
afea097
Put All Hiera Values for Tune Setting
Aug 28, 2019
002fe82
Add HaProxy Module with dependent modules
Aug 29, 2019
0980b48
Type Correction
Aug 29, 2019
507d879
Add LoadBalancer Profile
Aug 29, 2019
8859d51
Correctness
Aug 29, 2019
271d8f7
Add Optional
Aug 29, 2019
5187b1d
correct
Aug 29, 2019
e5e9cef
1
Aug 29, 2019
4e81d0f
test2
Aug 29, 2019
4974eef
correct IP addresses
Aug 29, 2019
8ca3c28
atstst
Aug 29, 2019
cfa2dc9
change back
Aug 29, 2019
abd6515
w
Aug 29, 2019
2d6c45a
Correct A Code Change
Aug 29, 2019
af58e06
test class
Aug 29, 2019
eea045a
123
Aug 29, 2019
b9dab8d
123
Aug 29, 2019
2a8473b
add rule 2
Sep 3, 2019
c3c83c5
adfsfds
Sep 3, 2019
c6458d3
add puppet_agent module
Sep 4, 2019
61e624c
add autosign module
Sep 9, 2019
ecd53b2
add user & grup
Sep 9, 2019
0c2e5c1
ff
Sep 9, 2019
b21c5e5
s
Sep 9, 2019
22498ee
rr
Sep 9, 2019
979904e
d
Sep 9, 2019
2eb4d83
ddd
Sep 24, 2019
5bcf6e7
tests
Oct 8, 2019
4a84756
wtstst
Oct 8, 2019
e4cbe26
stststst
Oct 8, 2019
fb0273d
ststst
Oct 8, 2019
3b3c56a
tstst
Oct 8, 2019
65b11ac
ststs
Oct 8, 2019
9a4fa99
tsts
Oct 8, 2019
3c6806b
sfsfsdf
Oct 8, 2019
9fd4e7a
tststs
Oct 8, 2019
64cb8f4
ststs
Oct 8, 2019
2ff2161
tsttst
Oct 8, 2019
7a846ad
tststs
Oct 8, 2019
27c6d89
ststs
Oct 8, 2019
917b85c
tststs
Oct 8, 2019
9afa1ce
stststs
Oct 8, 2019
998c96f
tststs
Oct 8, 2019
b2af8b3
tststs
Oct 8, 2019
a9fccf2
tstst
Oct 8, 2019
02a3ee7
tststs
Oct 8, 2019
465cd1c
tststst
Oct 8, 2019
dedbe20
tststs
Oct 8, 2019
22f26c4
sfss
Oct 8, 2019
e4cfae0
set production 2.4.0
Oct 8, 2019
4cd12bf
add firewall
Oct 21, 2019
ef9aead
d
Oct 21, 2019
e9e058f
ststs
Oct 21, 2019
4f52054
sd
Oct 21, 2019
8180745
ts
Oct 21, 2019
a763c80
dd
Oct 21, 2019
44b861b
ststs
Oct 21, 2019
2610a47
dd
Oct 21, 2019
82d7a51
tst
Oct 21, 2019
70384a4
sfd
Oct 22, 2019
0aaa178
tsts
Oct 22, 2019
9cacb8a
tst
Oct 22, 2019
22253d5
tst
Oct 25, 2019
b9f2a7e
dsfds
Oct 25, 2019
639ec29
sd
Oct 29, 2019
f1f8696
add tune script
Nov 18, 2019
9840ad8
sfsfsf
Nov 18, 2019
98c036a
sfs
Nov 20, 2019
d2fbb9c
l
Nov 20, 2019
1fc6e4b
tsts
Nov 20, 2019
6f8040a
sfsd
Nov 20, 2019
1fc4054
s
Nov 20, 2019
eb9ddc6
stst
Nov 20, 2019
180cc2c
ststst
Nov 20, 2019
9bde02d
tstst
Nov 20, 2019
97b0d85
sfsdf
Nov 20, 2019
a869f0c
sfsfd
Nov 20, 2019
4bc3062
fdf
Nov 21, 2019
cd6c73a
sss
Nov 21, 2019
3caadd2
ddd
Nov 21, 2019
b00c853
d
Nov 21, 2019
aab8110
tst
Nov 21, 2019
5f47e7b
dff
Nov 21, 2019
196dd1b
ttst
Nov 21, 2019
9e5f950
dfd
Nov 21, 2019
0f944a7
sss
Nov 21, 2019
a8d7aaa
sttst
Nov 21, 2019
64e0759
sfsdf
Nov 21, 2019
5a566b9
sss
Nov 22, 2019
3b0b467
111
Nov 22, 2019
3c6a5b4
dd
Nov 22, 2019
4e14b2a
sss
Nov 22, 2019
274170c
ddd
Nov 22, 2019
4cac68d
sfdsdf
Nov 22, 2019
dfa1b73
stst
Nov 22, 2019
53a07df
tstst
Nov 22, 2019
cc7a353
tsts
Nov 22, 2019
1431f1d
torml-rb
Nov 22, 2019
7d9d351
coorect
Dec 17, 2019
022d6aa
Add 1112345
Dec 18, 2019
4e06b1e
E37467
Dec 19, 2019
9838d2f
add modules
Dec 19, 2019
2763de8
sdfsd
Dec 19, 2019
bc94a69
ststst
Dec 19, 2019
c9d53a9
sss
Dec 19, 2019
9813792
sss
Dec 19, 2019
0bec410
ts
Dec 19, 2019
f7e6786
tts
Dec 19, 2019
11c907c
tssts
Dec 19, 2019
7e029af
adsdad
Dec 19, 2019
204a25a
ss
Dec 19, 2019
f263d59
sss
Dec 19, 2019
2a7f8cf
ss
Dec 19, 2019
7b40155
sdfsdf
Dec 19, 2019
91218e8
gg
Dec 19, 2019
0be6e37
sfsds
Dec 19, 2019
96de221
sdfsfd
Dec 19, 2019
ad997e6
ststs
Dec 19, 2019
ad647d4
sdfs
Dec 19, 2019
02a585c
sfsd
Dec 19, 2019
2b96d66
sds
Dec 19, 2019
0152417
tstst
Dec 19, 2019
36c075d
sfsd
Dec 19, 2019
a58e891
dfd
Dec 19, 2019
66a6a0f
sss
Dec 19, 2019
29f31ed
sss
Dec 19, 2019
167691c
tststs
Dec 19, 2019
25f98cb
sttt
Dec 19, 2019
1381f06
tst
Dec 19, 2019
6899455
sttst
Dec 19, 2019
332695e
sfsd
Dec 19, 2019
fb165b9
sfdsfds
Dec 19, 2019
aea4707
tsts
Dec 19, 2019
e8f3106
tstst
Dec 19, 2019
56d5c7f
ddd
Jan 16, 2020
d5d3e5e
sss
Jan 30, 2020
5ac3a8b
sfs
Jan 30, 2020
0f6376e
sfsdf
Jan 30, 2020
b28c077
ss
Jan 30, 2020
38a6bb0
d
Jan 30, 2020
d372933
ssss
Jan 30, 2020
667945a
sss
Jan 30, 2020
efc3fd0
add sqlserver module
Feb 3, 2020
e38368f
add new class
Feb 3, 2020
bc3e6df
ststs
Feb 3, 2020
bb2870c
ss
Feb 3, 2020
90d5751
sss
Feb 3, 2020
99bd052
dd
Feb 3, 2020
fbe1ab7
ffff
Feb 3, 2020
aa4fbfb
ss
Feb 3, 2020
38a031a
tsts
Feb 3, 2020
694b9f8
sfsdf
Feb 3, 2020
8729511
sfdsf
Feb 3, 2020
0d8393f
sfsd
Feb 3, 2020
0759e57
sfdsf
Feb 3, 2020
bbf15cc
tstst
Feb 3, 2020
a83b490
push
Mar 24, 2020
a41d947
add dashboard 2.2.0
Apr 2, 2020
73005f3
abc
Apr 6, 2020
4a055b9
recover
Apr 10, 2020
750f514
add onceover-example.yaml
Apr 10, 2020
a4d25d3
Delete Gemfile
henrywangpuppet Apr 10, 2020
cec9f36
Delete Gemfile.lock
henrywangpuppet Apr 10, 2020
12a6d15
add laodbalancer-improved.pp
Apr 10, 2020
26bf871
Merge branch 'lab' of github.com:henrywangpuppet/control-repo into lab
Apr 10, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
modules/
.onceover
23 changes: 23 additions & 0 deletions Puppetfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,26 @@ forge 'https://forge.puppet.com'
#mod 'apache',
# git: 'https://github.com/puppetlabs/puppetlabs-apache',
# branch: 'docs_experiment'
# latest

mod 'puppetlabs/concat','6.1.0'
mod 'puppetlabs/stdlib','6.0.0'
mod 'puppetlabs/translate','2.0.0'
mod 'puppetlabs/haproxy','4.0.0'
mod 'puppetlabs/puppet_agent','2.2.0'
mod 'puppetlabs/apt','7.1.0'
mod 'puppetlabs/facts','0.6.0'
mod 'puppetlabs/inifile','2.4.0'
mod 'danieldreier-autosign','0.2.0'
mod 'puppetlabs-firewall', '2.0.0'
mod 'puppetlabs-satellite_pe_tools', '2.0.0'
mod 'puppetlabs-puppet_metrics_collector', '5.2.0'
mod 'puppet-grafana', '6.1.0'
mod 'puppet-telegraf', '2.1.0'
mod 'puppetlabs-puppet_metrics_dashboard', '2.2.0'
mod 'puppetlabs-puppetserver_gem', '1.1.1'
mod 'herculesteam/augeasproviders_core', '2.5.0'
mod 'herculesteam/augeasproviders_mounttab', '2.0.2'
mod 'herculesteam/augeasproviders_pam', '2.1.0'
mod 'puppetlabs-support_tasks', '1.1.0'
mod 'puppetlabs-sqlserver', '2.6.2'
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require 'onceover/rake_tasks'
5 changes: 5 additions & 0 deletions data/common.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
---
message: "This node is using common data"
controlm::controlm_agent::agent2server_port: 7005
controlm::controlm_agent::server2agent_port: 7006
controlm::controlm_agent::tracker_port: 7035
controlm::controlm_agent::server_host: ctmgnpappla013
controlm::controlm_agent::primary_server_host: ctmgnpappla013.optus.com.au
938 changes: 938 additions & 0 deletions data/nodes/LinuxAgent2CM.platform9.puppet.net.yaml

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions data/nodes/compilemaster-01.platform9.puppet.net.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
puppet_enterprise::master::puppetserver::jruby_max_active_instances: 3
puppet_enterprise::profile::master::java_args:
Xms: 1536m
Xmx: 1536m
puppet_enterprise::master::puppetserver::reserved_code_cache: 512m
6 changes: 6 additions & 0 deletions data/nodes/compilemaster-02.platform9.puppet.net.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
puppet_enterprise::master::puppetserver::jruby_max_active_instances: 3
puppet_enterprise::profile::master::java_args:
Xms: 1536m
Xmx: 1536m
puppet_enterprise::master::puppetserver::reserved_code_cache: 512m
1 change: 0 additions & 1 deletion data/nodes/example-node.yaml

This file was deleted.

938 changes: 938 additions & 0 deletions data/nodes/linuxagent1forcmdeployment.platform9.puppet.net.yaml

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions data/nodes/pe201811ha-master.platform9.puppet.net.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
puppet_enterprise::master::puppetserver::jruby_max_active_instances: 1
puppet_enterprise::master::puppetserver:reserved_code_cache: '96m'
puppet_enterprise::profile::master::java_args:
Xmx: '384m'
Xms: '128m'
'XX:MaxPermSize': '=96m'
'XX:PermSize': '=64m'
'XX:+UseG1GC': ''
puppet_enterprise::profile::puppetdb::java_args:
Xmx: '128m'
Xms: '64m'
'XX:MaxPermSize': '=96m'
'XX:PermSize': '=64m'
'XX:+UseG1GC': ''
puppet_enterprise::profile::console::java_args:
Xmx: '64m'
Xms: '64m'
'XX:MaxPermSize': '=96m'
'XX:PermSize': '=64m'
'XX:+UseG1GC': ''
puppet_enterprise::profile::console::delayed_job_workers: 1
#shared_buffers takes affect during install but is not managed after
puppet_enterprise::profile::database::shared_buffers: '4MB'
#2015.3.2 and above
puppet_enterprise::profile::orchestrator::java_args:
Xmx: '64m'
Xms: '64m'
'XX:+UseG1GC': ''
28 changes: 28 additions & 0 deletions data/nodes/pe201811ha-replica.platform9.puppet.net.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
puppet_enterprise::master::puppetserver::jruby_max_active_instances: 1
puppet_enterprise::master::puppetserver:reserved_code_cache: '96m'
puppet_enterprise::profile::master::java_args:
Xmx: '384m'
Xms: '128m'
'XX:MaxPermSize': '=96m'
'XX:PermSize': '=64m'
'XX:+UseG1GC': ''
puppet_enterprise::profile::puppetdb::java_args:
Xmx: '128m'
Xms: '64m'
'XX:MaxPermSize': '=96m'
'XX:PermSize': '=64m'
'XX:+UseG1GC': ''
puppet_enterprise::profile::console::java_args:
Xmx: '64m'
Xms: '64m'
'XX:MaxPermSize': '=96m'
'XX:PermSize': '=64m'
'XX:+UseG1GC': ''
puppet_enterprise::profile::console::delayed_job_workers: 1
#shared_buffers takes affect during install but is not managed after
puppet_enterprise::profile::database::shared_buffers: '4MB'
#2015.3.2 and above
puppet_enterprise::profile::orchestrator::java_args:
Xmx: '64m'
Xms: '64m'
'XX:+UseG1GC': ''
17 changes: 17 additions & 0 deletions data/nodes/puppetmom.platform9.puppet.net.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
puppet_enterprise::profile::database::shared_buffers: 3715MB
puppet_enterprise::puppetdb::command_processing_threads: 4
puppet_enterprise::profile::puppetdb::java_args:
Xms: 2229m
Xmx: 2229m
puppet_enterprise::master::puppetserver::jruby_max_active_instances: 2
puppet_enterprise::profile::master::java_args:
Xms: 1536m
Xmx: 1536m
puppet_enterprise::master::puppetserver::reserved_code_cache: 512m
puppet_enterprise::profile::console::java_args:
Xms: 768m
Xmx: 768m
puppet_enterprise::profile::orchestrator::java_args:
Xms: 768m
Xmx: 768m
102 changes: 102 additions & 0 deletions loadbalancer-improved.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
class role::loadbalancer (
Optional[String] $ports1 = '80',
Optional[String] $ports2 = undef,
Optional[String] $rule1 = 'puppet00',
Optional[String] $rule2 = undef,
Optional[String] $backendserver_name1 = '',
Optional[String] $backendserver_name2 = '',
Optional[String] $backendserver_ipaddress1 = undef,
Optional[String] $backendserver_ipaddress2 = undef,
Optional[String] $connetc_timeout = '60s',
) {

class { 'haproxy':
merge_options => true,
global_options => {
'log' => "${::ipaddress} local0",
'chroot' => '/var/lib/haproxy',
'pidfile' => '/var/run/haproxy.pid',
'maxconn' => '4000',
'user' => 'haproxy',
'group' => 'haproxy',
'daemon' => '',
'stats' => 'socket /var/lib/haproxy/stats',
},
defaults_options => {
'log' => 'global',
'stats' => 'enable',
'option' => [
'redispatch',
],
'retries' => '3',
'timeout' => [
'http-request 10s',
'queue 1m',
'connect 300s',
'client 600s',
'server 600s',
'check 1m',
],
'maxconn' => '8000',
},
}

include ::haproxy

haproxy::listen { $rule1 :
collect_exported => false,
ipaddress => $::ipaddress,
ports => $ports1,
}

if $rule2 != undef
{
haproxy::listen { $rule2 :
collect_exported => false,
ipaddress => $::ipaddress,
ports => $ports2,
}

haproxy::balancermember { 'member3' :
listening_service => $rule2,
server_names => $backendserver_name1,
ipaddresses => $backendserver_ipaddress1,
ports => $ports2,
options => 'check',

}

haproxy::balancermember { 'member4' :
listening_service => $rule2,
server_names => $backendserver_name2,
ipaddresses => $backendserver_ipaddress2,
ports => $ports2,
options => 'check',
}

}




haproxy::balancermember { 'member1' :
listening_service => $rule1,
server_names => $backendserver_name1,
ipaddresses => $backendserver_ipaddress1,
ports => $ports1,
options => 'check',

}

haproxy::balancermember { 'member2' :
listening_service => $rule1,
server_names => $backendserver_name2,
ipaddresses => $backendserver_ipaddress2,
ports => $ports1,
options => 'check',
}

#pending Improvement, possible areas: Array Input with multipal ports


}
93 changes: 93 additions & 0 deletions onceover-example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# Classes to be tested
classes:
- role::database_server
- role::webserver
- role::goldload_server
- role::loadbalancer
- role::example
- role::callaugeas

# Nodes to tests classes on, this refers to a 'factset' or 'nodeset'
# depending on whether you are running 'spec' or 'acceptance' tests
nodes:
- AIX-7.1-powerpc
- SLES-12.1-64
- Debian-6.0.10-32
- CentOS-6.6-64
- Ubuntu-12.04-32
- Amazon-2018.03
- Ubuntu-12.04-64
- CentOS-6.6-32
- Debian-6.0.10-64
- AIX-6.1-powerpc
- Windows_Server-2012r2-64
- RHEL-7.4
- Debian-7.8-32
- windows-10-64
- Windows_Server-2008r2-64
- SLES-11.3-64
- Debian-7.8-64
- solaris-10_u9-sparc-64
- solaris-11.2-sparc-64
- Ubuntu-14.04-32
- CentOS-5.11-64
- CentOS-5.11-32
- RHEL-6.7
- CentOS-7.0-64
- Ubuntu-14.04-64

# You can group classes here to save typing
class_groups:
general_class:
- role::database_server
- role::webserver
- role::goldload_server
- role::example

# You can group nodes here to save typing
# We have created a 'non_windows_nodes' group because we can't
# give you Windows vagrant boxes to test with because licensing,
# we can give you fact sets though so go crazy with spec testing!
node_groups:
windows_nodes:
- Windows_Server-2012r2-64
- windows-10-64
- Windows_Server-2008r2-64
non_windows_nodes:
include: 'all_nodes'
exclude: 'windows_nodes'
callaugeas_nodes:
- RHEL-7.4
- RHEL-6.7
haproxy_nodes:
- SLES-12.1-64
- Debian-6.0.10-32
- CentOS-6.6-64
- Ubuntu-12.04-32
- Amazon-2018.03
- Ubuntu-12.04-64
- CentOS-6.6-32
- Debian-6.0.10-64
- RHEL-7.4
- Debian-7.8-32
- SLES-11.3-64
- Debian-7.8-64
- Ubuntu-14.04-32
- CentOS-5.11-64
- CentOS-5.11-32
- RHEL-6.7
- CentOS-7.0-64
- Ubuntu-14.04-64

test_matrix:
- all_nodes:
classes: 'general_class'
tests: 'spec'
- callaugeas_nodes:
classes: 'role::callaugeas'
tests: 'spec'
- haproxy_nodes:
classes: 'role::loadbalancer'
tests: 'spec'


Binary file added site-modules/.DS_Store
Binary file not shown.
Binary file added site-modules/controlm/.DS_Store
Binary file not shown.
Loading