058cc25008
feat: add bash completion
...
- quality of life addition to all hosts
2023-11-08 22:03:21 +11:00
d11dcc0b24
fix: datavol profile doesnt create the mountpoint
...
- add file resource to create the required mountpath
- add Array[Enum[]] for mount_options
- fix mount to ensure the mount_options are used
- remove pass and dump options, leave as defaults
2023-11-06 19:31:35 +11:00
Ben Vincent
f5ce438679
Merge pull request 'fix: variant regex results in error' ( #47 ) from neoloc/datavol_size_pattern into develop
...
Reviewed-on: unkinben/puppet-prod#47
2023-11-05 19:33:28 +09:30
cb9af5a2a8
fix: variant regex results in error
...
- update the $size variant regex so it actually matches correctly
- default $size to undef, which results in 100%FREE
2023-11-05 18:11:53 +11:00
Ben Vincent
29bc5f39ac
Merge pull request 'fix: bump enc' ( #45 ) from neoloc/bump_enc into develop
...
Reviewed-on: unkinben/puppet-prod#45
2023-11-05 16:25:13 +09:30
36142a3565
fix: bump enc
...
unkinben/puppet-enc#24
2023-11-05 17:54:36 +11:00
Ben Vincent
b7b371a020
Merge pull request 'feat: adding base packagerepo role' ( #44 ) from neoloc/packagerepo_role into develop
...
Reviewed-on: unkinben/puppet-prod#44
2023-11-05 16:16:28 +09:30
1d1541419a
feat: adding base packagerepo role
...
- create roles::infra::packagerepo
- bump enc version
2023-11-05 17:45:13 +11:00
Ben Vincent
a81dec41d2
Merge pull request 'feat: add datavol class to manage /data' ( #43 ) from neoloc/datavol into develop
...
Reviewed-on: unkinben/puppet-prod#43
2023-11-05 16:11:16 +09:30
6bbc14136f
Merge branch 'develop' into neoloc/datavol
2023-11-05 17:40:19 +11:00
def2561e6c
feat: add datavol class to manage /data
...
- included puppetlabs-lvm module
- created profiles::base::datavol to:
- create pv, vg, lv and format the filesystem and mount it
2023-11-05 17:37:10 +11:00
Ben Vincent
30e3afc163
Merge pull request 'feat: change enc repo to be tagged' ( #42 ) from neoloc/enc_tagged_release into develop
...
Reviewed-on: unkinben/puppet-prod#42
2023-11-04 19:14:17 +09:30
56518f1fcb
feat: change enc repo to be tagged
...
- enc repository will download a specific tag
- defaults to master
- hiera set to release tag '0.1'
2023-11-04 20:36:08 +11:00
Ben Vincent
3f1694d283
Merge pull request 'feat: add motd and facts' ( #41 ) from neoloc/motd_profile into develop
...
Reviewed-on: unkinben/puppet-prod#41
2023-11-04 18:42:48 +09:30
0cc0bacad3
feat: add motd and facts
...
- use parameters created by the enc to create external facts
- use external facts to generate the motd
- use features from unkinben/puppet-enc#22
2023-11-04 20:11:20 +11:00
Ben Vincent
dc4a4942c2
Merge pull request 'fix: debian puppet_version different to EL' ( #38 ) from neoloc/puppet_version_per_os into develop
...
Reviewed-on: unkinben/puppet-prod#38
2023-11-02 20:45:49 +09:30
a89a68bc61
fix: debian puppet_version different to EL
...
- change puppet_version to be set per-os in hieradata
2023-11-02 22:14:38 +11:00
Ben Vincent
85a7dec11c
Merge pull request 'fix: digitalpacific epel repodata broken' ( #37 ) from neoloc/epel_aarnet into develop
...
Reviewed-on: unkinben/puppet-prod#37
2023-11-02 20:40:08 +09:30
75a66a3339
fix: digitalpacific epel repodata broken
...
- change epel to read from aarnet
2023-11-02 22:08:00 +11:00
Ben Vincent
ca6f0abdc7
Merge pull request 'feat: add ceph osd/mds/mon roles' ( #36 ) from neoloc/ceph_roles into develop
...
Reviewed-on: unkinben/puppet-prod#36
2023-11-02 18:43:41 +09:30
5076d7383a
feat: add ceph osd/mds/mon roles
...
- basic roles currently
- will allow build of ceph to begin
2023-11-02 20:12:47 +11:00
Ben Vincent
89653912cb
Merge pull request 'feat: manage puppet clients' ( #35 ) from neoloc/puppetclient into develop
...
Reviewed-on: unkinben/puppet-prod#35
2023-10-29 18:59:52 +09:30
130669a130
feat: manage puppet clients
...
- manage the service
- manage the package, version lock it
- deploy the /etc/puppetlabs/puppet/puppet.conf from template for puppet
clients only
2023-10-29 20:26:39 +11:00
Ben Vincent
cf26d2d2e7
Merge pull request 'feat: add puppetboard role' ( #34 ) from neoloc/puppetboard into develop
...
Reviewed-on: unkinben/puppet-prod#34
2023-10-29 18:06:27 +09:30
46c3eb9597
feat: add puppetboard role
...
- add nginx module to manage reverse proxy on host level
- add puppetboard venv
- add gunicorn instance
- add script to start the gunicorn instance
- add nginx vhost
2023-10-29 19:33:11 +11:00
f8faad3ed6
Merge pull request 'feat: add features to puppet.conf' ( #33 ) from neoloc/puppetconf into develop
...
Reviewed-on: unkinben/puppet-prod#33
2023-10-23 21:09:29 +09:30
0171a82d58
feat: add features to puppet.conf
...
- reports, for sending reports to puppetdb
- usecacheonfailure, to show faulures in puppetboard (when set to false)
2023-10-23 22:37:41 +11:00
ef0d865845
Merge pull request 'feat: split puppetdb role into api and sql' ( #32 ) from neoloc/puppetdb2 into develop
...
Reviewed-on: unkinben/puppet-prod#32
2023-10-22 20:30:43 +09:30
e682462917
feat: split puppetdb role into api and sql
...
- add puppetdb_api and puppetdb_sql role
- add puppetdb_api and puppetdb_sql profile
- add prodinf01n05 to /etc/hosts file
- set listen_address for all services to be hosts ip
- set storeconfigs and storeconfigs_backend to be managed by puppetmaster profile
2023-10-22 21:55:50 +11:00
58961d0399
Merge pull request 'feat: add firewalld management profile' ( #31 ) from neoloc/firewalld into develop
...
Reviewed-on: unkinben/puppet-prod#31
2023-10-22 18:27:38 +09:30
6bb52f2a15
feat: add firewalld management profile
...
- basic profile to enable/disable, and install/remove
- defaulting to enabled and installed, but set to disabled and removed
in hiera
2023-10-22 19:54:10 +11:00
cfe30823b4
Merge pull request 'fix: found typo in r10k script' ( #30 ) from neoloc/r10k_typo into develop
...
Reviewed-on: unkinben/puppet-prod#30
2023-10-22 00:02:43 +09:30
f772215630
fix: found typo in r10k script
2023-10-22 01:30:57 +11:00
2faed5de72
Merge pull request 'fix: set the puppetdb_host correctly' ( #29 ) from neoloc/puppetdb_server_loc into develop
...
Reviewed-on: unkinben/puppet-prod#29
2023-10-21 23:17:00 +09:30
c6c36e8351
fix: set the puppetdb_host correctly
...
- change the puppetdb::master::config from include to class statement
- set the puppetdb_host value to match what is stored in hiera
- disable firewall management on the puppetdb host
2023-10-22 00:40:12 +11:00
92b73019cd
Merge pull request 'feat: add management of /etc/hosts' ( #28 ) from neoloc/hostsfile into develop
...
Reviewed-on: unkinben/puppet-prod#28
2023-10-21 23:05:30 +09:30
95434214a9
feat: add management of /etc/hosts
...
- add class to manage the /etc/hosts file
- add static hosts to /etc/hosts file via hiera array/hash
2023-10-22 00:34:22 +11:00
aaee62afad
Merge pull request 'Added class to manage a default set of scripts' ( #27 ) from neoloc/puppet_wrapper into develop
...
Reviewed-on: unkinben/puppet-prod#27
2023-10-21 22:32:30 +09:30
e847954e03
Merge branch 'develop' into neoloc/puppet_wrapper
2023-10-22 00:00:52 +11:00
6b7f531e11
Merge pull request 'feat: add sudo secure_path' ( #26 ) from neoloc/sudo_securepath into develop
...
Reviewed-on: unkinben/puppet-prod#26
2023-10-21 22:26:11 +09:30
86a6c1bd96
feat: add sudo secure_path
...
- update the sudo class from an include to a definition
- set the secure_path variable to include /usr/local/{bin,sbin}
2023-10-21 23:52:48 +11:00
789ae2a508
Merge pull request 'Setup PuppetDB/Puppetboard' ( #25 ) from neoloc/puppetdb into develop
...
Reviewed-on: unkinben/puppet-prod#25
2023-10-21 22:01:07 +09:30
ac27a9ce0b
Merge branch 'develop' into neoloc/puppetdb
2023-10-21 23:30:40 +11:00
080cdd8884
Setup PuppetDB/Puppetboard
...
- install modules required
- puppetdb
- postgresql
- puppetboard
- python
- create new profiles to manage each item (puppetdb/puppetboard)
- added puppetdb role
- include the puppetdb::master::config in puppetmaster role
- re-organised the puppetfile
- moved python to be managed by the python module
- added postgresql to list of managed repos
2023-10-21 23:11:40 +11:00
b2a4ef2386
Merge pull request 'Account/Sudo management' ( #24 ) from neoloc/sudo_initial_setup into develop
...
Reviewed-on: unkinben/puppet-prod#24
2023-08-29 22:56:28 +09:30
2b11a9417c
Account/Sudo management
...
- imported account and sudo puppet modules
- created account management wrapper
- defined sysadmin account, set to be created on all nodes
- removed sudo from base packages as its managed by sudo module now
2023-08-29 23:25:10 +10:00
f4b688b10e
Merge pull request 'Show commit version when applying puppet' ( #23 ) from neoloc/show_commit_version into develop
...
Reviewed-on: unkinben/puppet-prod#23
2023-08-29 21:25:10 +09:30
81784f819f
Show commit version when applying puppet
...
- set the config_version in the environment.conf file
2023-08-29 21:53:11 +10:00
ea7561a093
Merge pull request 'Adding a default environment' ( #22 ) from feature/default_environment into develop
...
Reviewed-on: unkinben/puppet-prod#22
2023-08-26 19:21:27 +09:30
d2fb3cff27
Merge branch 'develop' into feature/default_environment
2023-08-26 19:50:54 +10:00