Commit Graph

293 Commits

Author SHA1 Message Date
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
b8380ca2f2 Merge pull request 'Updated dns_alt_names for puppetmaster' (#21) from neoloc/dns_alt_names into develop
Reviewed-on: unkinben/puppet-prod#21
2023-08-26 19:16:25 +09:30
afb30f9dce Updated dns_alt_names for puppetmaster 2023-08-26 19:45:43 +10:00
116342bdaa Added class to manage a default set of scripts
- included scripts into profiles::base
  - updated hiera with list of scripts to create and their template name
  - created template for a puppet wrapper
2023-08-26 16:11:53 +10:00
efc769191e Adding a default environment
- set through puppet.conf
  - created symbolic link from develop -> production in code/environments
  - changed puppet-g10k script to be generated from a template
  - parameterised g10k into hieradata
2023-08-26 15:36:35 +10:00
c1ddb00cbb Merge pull request 'Updated autosign' (#20) from feature/autosign_comments into develop
Reviewed-on: unkinben/puppet-prod#20
2023-08-26 00:31:41 +09:30
c96676e143 Updated autosign
- added way to manage individual nodes
  - added defaults for domains, subnets and nodes
  - updated comments and doc
2023-08-26 01:00:31 +10:00
9dab46ba5f Merge pull request 'Changed to a simple autosign method' (#19) from feature/simple_autosign into develop
Reviewed-on: unkinben/puppet-prod#19
2023-08-26 00:22:10 +09:30
5b4a17b77a Changed to a simple autosign method 2023-08-26 00:49:21 +10:00
8fb922d5fb Merge pull request 'Added a new profile to manage common packages' (#7) from feature/base_packages into develop
Reviewed-on: unkinben/puppet-prod#7
2023-07-02 14:30:53 +09:30
d48283734c Added a new profile to manage common packages
* will by default pull data from hiera
  * could change it on a per-distro/role basis
  * requires stdlib for ensure_packages
2023-07-02 14:55:02 +10:00
8663d446d3 Merge pull request 'Added default resource settings' (#6) from fix/global_exec_path into develop
Reviewed-on: unkinben/puppet-prod#6
2023-07-02 13:53:49 +09:30
d7a7198497 Added default resource settings
* added profiles::default class in defaults.pp file
  * imported into all roles
  * cleaned up some duplicated code
2023-07-02 14:21:09 +10:00
b4859e1f9f Merge pull request 'Changed source for package to be url' (#5) from fix/puppet7_source into develop
Reviewed-on: unkinben/puppet-prod#5
2023-07-02 13:45:16 +09:30
e519b2aeff Changed source for package to be url
* this removes the need to manually download/store the file, then
    pass it to the dpkg package manager
2023-07-02 14:13:50 +10:00
568da5883e Merge pull request 'Added Debian components' (#4) from fix/debian_components into develop
Reviewed-on: unkinben/puppet-prod#4
2023-07-01 22:09:26 +09:30
87f174df33 Added Debian components
* added debian components for Debian12 and Debian11
  * added apt module to puppetfile
  * removed /etc/apt/sources.list management, done by apt module
  * added profiles::apt::puppet7
2023-07-01 22:38:25 +10:00