Commit Graph

220 Commits

Author SHA1 Message Date
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
46a95d756a Merge pull request 'Added a base role' (#3) from feature/base_role into develop
Reviewed-on: unkinben/puppet-prod#3
2023-06-27 20:13:27 +09:30
155c7c260a Merge pull request 'Added boilerplate for debian host management' (#2) from feature/apt_repository into develop
Reviewed-on: unkinben/puppet-prod#2
2023-06-27 20:11:20 +09:30
b12e3471f3 Merge branch 'develop' into feature/apt_repository 2023-06-27 20:10:44 +09:30
c00821763e Added a base role
* base role imports the base profile
  * updated profiles::base to work with debian family
2023-06-27 20:37:06 +10:00
d5989653d1 Merge pull request 'feature/manage_r10k_repo' (#1) from feature/manage_r10k_repo into develop
Reviewed-on: unkinben/puppet-prod#1
2023-06-26 19:39:19 +09:30
754241bcf2 Added class to manage installing the git client 2023-06-26 20:06:15 +10:00
45a9639346 Changed r10k to update every 5 minutes 2023-06-26 20:02:08 +10:00
5d758da66e Added r10k repo management
* added profile to download puppet-r10k, add a script to pull changes,
    and scheduled it to happen automatically with systemd timer/service
  * added to the puppetmaster profile
  * updated hieradata
2023-06-26 19:42:15 +10:00
4e30d9b6d9 Added boilerplate for debian host management
* added apt repo management
  * added switcher based on OS to base.pp
2023-06-26 19:20:05 +10:00
Ben Vincent
2321925298
Merge pull request #21 from neoloc/fix/change_systemd_module
Fix/change systemd module
2023-06-25 14:50:48 +10:00
Ben Vincent
0ba5beb409
Merge branch 'develop' into fix/change_systemd_module 2023-06-25 14:50:33 +10:00
f1f39ef4e3 Changed to vox systemd module
* updated Puppetfile
  * updated puppet-enc timer/service
  * updated puppet-g10k timer/service
2023-06-25 14:46:09 +10:00
5ee4891157 Add a switch to check for os family
This is so I can include either apt or yum/dnf based profiles. This can
be expanded easily if new families are added, or if new base role
includes are added that are different based on the family of the os.
2023-06-25 14:36:23 +10:00
7a789ceaee Renamed role/profile directories
* renamed role to roles
  * renamed profile to profiles
  * cleaned up all profiles/roles/hieradata to match new paths
2023-06-25 14:36:23 +10:00
Ben Vincent
a1ae948520
Merge pull request #20 from neoloc/feature/add_switch_for_familyos
Add a switch to check for os family
2023-06-25 13:34:30 +10:00
7f2c82e07d Add a switch to check for os family
This is so I can include either apt or yum/dnf based profiles. This can
be expanded easily if new families are added, or if new base role
includes are added that are different based on the family of the os.
2023-06-25 13:31:29 +10:00
Ben Vincent
8942392b53
Merge pull request #19 from neoloc/fix/role_profile_paths
Renamed role/profile directories
2023-06-25 13:25:58 +10:00
87c38eadf2 Renamed role/profile directories
* renamed role to roles
  * renamed profile to profiles
  * cleaned up all profiles/roles/hieradata to match new paths
2023-06-25 13:24:07 +10:00
1b7e807c0e Renamed role/profile directories
* renamed role to roles
  * renamed profile to profiles
  * cleaned up all profiles/roles/hieradata to match new paths
2023-06-25 13:06:36 +10:00
Ben Vincent
cb6aa0f4b1
Merge pull request #18 from neoloc/feature/puppetrepo
Setup puppet7 repo for el distros
2023-06-25 12:55:18 +10:00
93c4689d8d Setup puppet7 repo for el distros
* create that puppet7.repo file
  * install the puppet-release rpm
2023-06-24 22:33:47 +10:00
Ben Vincent
52a176fb0e
Merge pull request #17 from neoloc/feature/repoconfig
Added classes to manage repositories for yum
2023-06-24 22:06:16 +10:00
87d9d920e8 Added classes to manage repositories for yum
* manage all base repositories
  * manage epel if required
  * cleanup /etc/yum.repos.d directory
2023-06-24 21:58:00 +10:00