Renamed role/profile directories
* renamed role to roles * renamed profile to profiles * cleaned up all profiles/roles/hieradata to match new paths
This commit is contained in:
parent
cb6aa0f4b1
commit
87c38eadf2
@ -1,9 +1,9 @@
|
||||
---
|
||||
profile::base::ntp_servers:
|
||||
profiles::base::ntp_servers:
|
||||
- 0.au.pool.ntp.org
|
||||
- 1.au.pool.ntp.org
|
||||
|
||||
profile::puppet::autosign::subnet_ranges:
|
||||
profiles::puppet::autosign::subnet_ranges:
|
||||
- '198.18.17.0/24'
|
||||
|
||||
profile::puppet::enc::enc_repo: https://git.unkin.net/unkinben/puppet-enc.git
|
||||
profiles::puppet::enc::enc_repo: https://git.unkin.net/unkinben/puppet-enc.git
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# hieradata/os/AlmaLinux/AlmaLinux8.yaml
|
||||
---
|
||||
profile::yum::managed_repos:
|
||||
profiles::yum::managed_repos:
|
||||
- 'base'
|
||||
- 'extras'
|
||||
- 'appstream'
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# hieradata/os/AlmaLinux/AlmaLinux9.yaml
|
||||
---
|
||||
profile::yum::managed_repos:
|
||||
profiles::yum::managed_repos:
|
||||
- 'base'
|
||||
- 'extras'
|
||||
- 'appstream'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
# hieradata/os/almalinux/all_releases.yaml
|
||||
---
|
||||
profile::yum::base::baseurl: http://almalinux.mirror.digitalpacific.com.au
|
||||
profile::yum::epel::baseurl: http://epel.mirror.digitalpacific.com.au
|
||||
profiles::yum::base::baseurl: http://almalinux.mirror.digitalpacific.com.au
|
||||
profiles::yum::epel::baseurl: http://epel.mirror.digitalpacific.com.au
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
# this is the base class, which will be used by all servers
|
||||
class profile::base (
|
||||
class profiles::base (
|
||||
Array $ntp_servers,
|
||||
) {
|
||||
class { 'chrony':
|
||||
servers => $ntp_servers,
|
||||
}
|
||||
|
||||
include profile::yum::global
|
||||
include profiles::yum::global
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
# Class: profile::puppet::autosign
|
||||
# Class: profiles::puppet::autosign
|
||||
#
|
||||
# This class manages an autosign script for the Puppet master.
|
||||
# It sets up a Ruby script that automatically signs Puppet node requests
|
||||
@ -15,7 +15,7 @@
|
||||
# The class can be declared in a node definition or classified using an ENC or Hiera.
|
||||
# Example:
|
||||
# node 'puppet.example.com' {
|
||||
# class { 'profile::puppet::autosign':
|
||||
# class { 'profiles::puppet::autosign':
|
||||
# subnet_ranges => ['198.18.17.0/24', '10.0.0.0/8'],
|
||||
# }
|
||||
# }
|
||||
@ -27,7 +27,7 @@
|
||||
#
|
||||
# Limitations:
|
||||
# This is designed to work on Unix-like systems.
|
||||
class profile::puppet::autosign (
|
||||
class profiles::puppet::autosign (
|
||||
Array[Stdlib::IP::Address::V4::CIDR] $subnet_ranges,
|
||||
) {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
# Class: profile::puppet::enc
|
||||
# Class: profiles::puppet::enc
|
||||
#
|
||||
# This class manages a Git repository at /opt/puppetlabs/enc. It includes a
|
||||
# systemd service and timer to keep the repository updated every minute.
|
||||
@ -19,7 +19,7 @@
|
||||
# using an ENC or Hiera.
|
||||
# Example:
|
||||
# node 'puppet.example.com' {
|
||||
# class { 'profile::puppet::enc':
|
||||
# class { 'profiles::puppet::enc':
|
||||
# enc_repo => 'https://github.com/user/repo.git',
|
||||
# }
|
||||
# }
|
||||
@ -33,7 +33,7 @@
|
||||
# Limitations:
|
||||
# This is designed to work on Unix-like systems only.
|
||||
#
|
||||
class profile::puppet::enc (
|
||||
class profiles::puppet::enc (
|
||||
String $enc_repo,
|
||||
) {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
# Class: profile::puppet::g10k
|
||||
# Class: profiles::puppet::g10k
|
||||
#
|
||||
# This class handles downloading and installation of the g10k tool, a fast
|
||||
# Git and Forge based Puppet environment and module deployment tool.
|
||||
@ -19,7 +19,7 @@
|
||||
# using an ENC or Hiera.
|
||||
# Example:
|
||||
# node 'puppet.example.com' {
|
||||
# include profile::puppet::g10k
|
||||
# include profiles::puppet::g10k
|
||||
# }
|
||||
#
|
||||
# Requirements:
|
||||
@ -30,7 +30,7 @@
|
||||
#
|
||||
# Limitations:
|
||||
# This is designed to work on Unix-like systems only.
|
||||
class profile::puppet::g10k {
|
||||
class profiles::puppet::g10k {
|
||||
|
||||
package { 'unzip':
|
||||
ensure => installed,
|
||||
@ -1,4 +1,4 @@
|
||||
# Class: profile::puppet::puppetmaster
|
||||
# Class: profiles::puppet::puppetmaster
|
||||
#
|
||||
# This class manages the puppetmaster using the ghoneycutt-puppet module.
|
||||
# It manages the server settings in the puppet.conf file.
|
||||
@ -13,7 +13,7 @@
|
||||
# using an ENC or Hiera.
|
||||
# Example:
|
||||
# node 'puppet.example.com' {
|
||||
# include profile::puppet::puppetmaster
|
||||
# include profiles::puppet::puppetmaster
|
||||
# }
|
||||
#
|
||||
# Requirements:
|
||||
@ -22,12 +22,12 @@
|
||||
#
|
||||
# Limitations:
|
||||
# This is designed to work on Unix-like systems.
|
||||
class profile::puppet::puppetmaster {
|
||||
include profile::puppet::g10k
|
||||
include profile::puppet::enc
|
||||
include profile::puppet::autosign
|
||||
class profiles::puppet::puppetmaster {
|
||||
include profiles::puppet::g10k
|
||||
include profiles::puppet::enc
|
||||
include profiles::puppet::autosign
|
||||
|
||||
class { 'profile::puppet::server':
|
||||
class { 'profiles::puppet::server':
|
||||
vardir => '/opt/puppetlabs/server/data/puppetserver',
|
||||
logdir => '/var/log/puppetlabs/puppetserver',
|
||||
rundir => '/var/run/puppetlabs/puppetserver',
|
||||
@ -1,4 +1,4 @@
|
||||
# Class: profile::puppet::server
|
||||
# Class: profiles::puppet::server
|
||||
#
|
||||
# This class manages Puppet server's configuration and service.
|
||||
#
|
||||
@ -14,7 +14,7 @@
|
||||
# external_nodes - Path to the external node classifier script.
|
||||
# autosign - Path to the autosign script.
|
||||
#
|
||||
class profile::puppet::server (
|
||||
class profiles::puppet::server (
|
||||
String $vardir,
|
||||
String $logdir,
|
||||
String $rundir,
|
||||
@ -32,7 +32,7 @@ class profile::puppet::server (
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0644',
|
||||
content => epp('profile/puppet/server/puppet.conf.epp', {
|
||||
content => epp('profiles/puppet/server/puppet.conf.epp', {
|
||||
'vardir' => $vardir,
|
||||
'logdir' => $logdir,
|
||||
'rundir' => $rundir,
|
||||
@ -1,4 +1,4 @@
|
||||
# Class: profile::yum::base
|
||||
# Class: profiles::yum::base
|
||||
#
|
||||
# This class manages the 'base', extras' and 'appstream' yum
|
||||
# repositories for a system, based on the provided list of managed repositories.
|
||||
@ -23,12 +23,12 @@
|
||||
# Example usage:
|
||||
# --------------
|
||||
# To use this class with the default parameters:
|
||||
# class { 'profile::yum::base':
|
||||
# class { 'profiles::yum::base':
|
||||
# managed_repos => ['base', 'extras', 'appstream'],
|
||||
# baseurl => 'http://mylocalmirror.com/yum',
|
||||
# }
|
||||
#
|
||||
class profile::yum::base (
|
||||
class profiles::yum::base (
|
||||
Array[String] $managed_repos,
|
||||
String $baseurl,
|
||||
) {
|
||||
@ -1,4 +1,4 @@
|
||||
# Class: profile::yum::epel
|
||||
# Class: profiles::yum::epel
|
||||
#
|
||||
# This class manages the EPEL yum repository for the system.
|
||||
#
|
||||
@ -22,13 +22,13 @@
|
||||
# Example usage:
|
||||
# --------------
|
||||
# To use this class with the default parameters:
|
||||
# include profile::yum::epel
|
||||
# include profiles::yum::epel
|
||||
#
|
||||
# To specify a custom base URL:
|
||||
# class { 'profile::yum::epel':
|
||||
# class { 'profiles::yum::epel':
|
||||
# baseurl => 'http://mylocalmirror.com/yum',
|
||||
# }
|
||||
class profile::yum::epel (
|
||||
class profiles::yum::epel (
|
||||
Array[String] $managed_repos,
|
||||
String $baseurl,
|
||||
) {
|
||||
@ -1,4 +1,4 @@
|
||||
# Class: profile::yum::global
|
||||
# Class: profiles::yum::global
|
||||
#
|
||||
# This class manages global YUM configurations and optionally includes the
|
||||
# base and EPEL yum repository profiles based on the content of the
|
||||
@ -21,7 +21,7 @@
|
||||
# and enabling the repository and GPG checks.
|
||||
#
|
||||
# - Depending on the content of the $managed_repos parameter, it includes the
|
||||
# profile::yum::base and/or profile::yum::epel classes.
|
||||
# profiles::yum::base and/or profiles::yum::epel classes.
|
||||
#
|
||||
# - Manages all .repo files under /etc/yum.repos.d. All the repositories listed
|
||||
# in $managed_repos will have their corresponding .repo files preserved. Any
|
||||
@ -33,15 +33,15 @@
|
||||
# Example usage:
|
||||
# --------------
|
||||
# To use this class, include the class and configure hieradata:
|
||||
# include profile::yum::global
|
||||
# include profiles::yum::global
|
||||
#
|
||||
# profile::yum::managed_repos:
|
||||
# profiles::yum::managed_repos:
|
||||
# - 'base'
|
||||
# - 'extras'
|
||||
# - 'appstream'
|
||||
#
|
||||
class profile::yum::global (
|
||||
Array[String] $managed_repos = lookup('profile::yum::managed_repos'),
|
||||
class profiles::yum::global (
|
||||
Array[String] $managed_repos = lookup('profiles::yum::managed_repos'),
|
||||
){
|
||||
class { 'yum':
|
||||
keep_kernel_devel => true,
|
||||
@ -87,17 +87,17 @@ class profile::yum::global (
|
||||
}
|
||||
|
||||
# Setup base repos
|
||||
class { 'profile::yum::base':
|
||||
class { 'profiles::yum::base':
|
||||
managed_repos => $managed_repos,
|
||||
}
|
||||
|
||||
# Setup epel if included in managed_repos
|
||||
class { 'profile::yum::epel':
|
||||
class { 'profiles::yum::epel':
|
||||
managed_repos => $managed_repos,
|
||||
}
|
||||
|
||||
# Setup puppet7 if included in managed_repos
|
||||
class { 'profile::yum::puppet7':
|
||||
class { 'profiles::yum::puppet7':
|
||||
managed_repos => $managed_repos,
|
||||
}
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
# Class: profile::yum::epel
|
||||
# Class: profiles::yum::epel
|
||||
#
|
||||
# This class manages the puppet7 yum repository for the system.
|
||||
#
|
||||
@ -22,13 +22,13 @@
|
||||
# Example usage:
|
||||
# --------------
|
||||
# To use this class with the default parameters:
|
||||
# include profile::yum::puppet7
|
||||
# include profiles::yum::puppet7
|
||||
#
|
||||
# To specify a custom base URL:
|
||||
# class { 'profile::yum::puppet7':
|
||||
# class { 'profiles::yum::puppet7':
|
||||
# baseurl => 'http://mylocalmirror.com/yum',
|
||||
# }
|
||||
class profile::yum::puppet7 (
|
||||
class profiles::yum::puppet7 (
|
||||
Array[String] $managed_repos,
|
||||
String $baseurl = 'http://yum.puppet.com',
|
||||
) {
|
||||
@ -1,6 +0,0 @@
|
||||
# a role to deploy the puppetmaster
|
||||
# work in progress
|
||||
class role::puppet::puppetmaster {
|
||||
include profile::base
|
||||
include profile::puppet::puppetmaster
|
||||
}
|
||||
6
site/roles/manifests/puppet/puppetmaster.pp
Normal file
6
site/roles/manifests/puppet/puppetmaster.pp
Normal file
@ -0,0 +1,6 @@
|
||||
# a role to deploy the puppetmaster
|
||||
# work in progress
|
||||
class roles::puppet::puppetmaster {
|
||||
include profiles::base
|
||||
include profiles::puppet::puppetmaster
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user