-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
172 changed files
with
1,866 additions
and
1,758 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,26 +28,26 @@ | |
} | ||
} | ||
|
||
file { "/opt/bolt": | ||
ensure => "directory", | ||
owner => "git", | ||
file { '/opt/bolt': | ||
ensure => 'directory', | ||
owner => 'git', | ||
group => 100, | ||
mode => "0755", | ||
mode => '0755', | ||
} | ||
|
||
vcsrepo { "/opt/bolt": | ||
provider => "git", | ||
ensure => "latest", | ||
source => "ssh://[email protected]/mlibrary/bolt.git", | ||
user => "git", | ||
vcsrepo { '/opt/bolt': | ||
ensure => 'latest', | ||
provider => 'git', | ||
source => 'ssh://[email protected]/mlibrary/bolt.git', | ||
user => 'git', | ||
require => [ | ||
Class["nebula::profile::github_pull_account"], | ||
File["/opt/bolt"], | ||
Package["git"], | ||
Class['nebula::profile::github_pull_account'], | ||
File['/opt/bolt'], | ||
Package['git'], | ||
] | ||
} | ||
|
||
lookup("nebula::profile::kubernetes::clusters", default_value => {}).each |$id, $cluster| { | ||
lookup('nebula::profile::kubernetes::clusters', default_value => {}).each |$id, $cluster| { | ||
$host = $cluster["control_dns"] | ||
|
||
concat_fragment { "configure ssh client for ${id}": | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,46 +9,46 @@ | |
class nebula::profile::certbot_cloudflare ( | ||
Hash[String, Hash[String, Array[String]]] $certs = {}, | ||
Hash[String, Array[String]] $simple_certs = {}, | ||
String $cert_dir = "/var/local/cert_dir", | ||
String $haproxy_cert_dir = "/var/local/haproxy_cert_dir", | ||
String $letsencrypt_email = "[email protected]", | ||
String $cloudflare_api_token = "default.invalid", | ||
String $cert_dir = '/var/local/cert_dir', | ||
String $haproxy_cert_dir = '/var/local/haproxy_cert_dir', | ||
String $letsencrypt_email = '[email protected]', | ||
String $cloudflare_api_token = 'default.invalid', | ||
) { | ||
ensure_packages([ | ||
"certbot", | ||
"python3-certbot-dns-cloudflare", | ||
'certbot', | ||
'python3-certbot-dns-cloudflare', | ||
]) | ||
|
||
file { "/root/.secrets": | ||
ensure => "directory" | ||
file { '/root/.secrets': | ||
ensure => 'directory' | ||
} | ||
|
||
file { "/root/.secrets/certbot": | ||
ensure => "directory", | ||
mode => "0700" | ||
file { '/root/.secrets/certbot': | ||
ensure => 'directory', | ||
mode => '0700' | ||
} | ||
|
||
file { "/root/.secrets/certbot/cloudflare.ini": | ||
mode => "0600", | ||
content => template("nebula/profile/certbot_cloudflare/cloudflare.ini.erb") | ||
file { '/root/.secrets/certbot/cloudflare.ini': | ||
mode => '0600', | ||
content => template('nebula/profile/certbot_cloudflare/cloudflare.ini.erb') | ||
} | ||
|
||
file { "/tmp/all_cert_commands_cloudflare": | ||
content => template("nebula/profile/certbot_cloudflare/commands.erb") | ||
file { '/tmp/all_cert_commands_cloudflare': | ||
content => template('nebula/profile/certbot_cloudflare/commands.erb') | ||
} | ||
|
||
$certs.each |$service, $domains| { | ||
$domains.each |$main_domain, $alt_domains| { | ||
concat { "${cert_dir}/${main_domain}.crt": | ||
group => "puppet", | ||
group => 'puppet', | ||
} | ||
|
||
concat { "${cert_dir}/${main_domain}.key": | ||
group => "puppet", | ||
group => 'puppet', | ||
} | ||
|
||
concat { "${haproxy_cert_dir}/${service}/${main_domain}.pem": | ||
group => "puppet", | ||
group => 'puppet', | ||
} | ||
|
||
concat_fragment { "${main_domain}.crt cert": | ||
|
@@ -62,13 +62,13 @@ | |
} | ||
|
||
concat_fragment { "${main_domain}.pem cert": | ||
order => "01", | ||
order => '01', | ||
target => "${haproxy_cert_dir}/${service}/${main_domain}.pem", | ||
source => "/etc/letsencrypt/live/${main_domain}/fullchain.pem" | ||
} | ||
|
||
concat_fragment { "${main_domain}.pem key": | ||
order => "02", | ||
order => '02', | ||
target => "${haproxy_cert_dir}/${service}/${main_domain}.pem", | ||
source => "/etc/letsencrypt/live/${main_domain}/privkey.pem" | ||
} | ||
|
@@ -77,7 +77,7 @@ | |
|
||
$simple_certs.each |$domain, $sans| { | ||
concat { "${cert_dir}/${domain}.crt": | ||
group => "puppet", | ||
group => 'puppet', | ||
} | ||
|
||
concat_fragment { "${cert_dir}/${domain}.crt cert": | ||
|
@@ -86,7 +86,7 @@ | |
} | ||
|
||
concat { "${cert_dir}/${domain}.key": | ||
group => "puppet", | ||
group => 'puppet', | ||
} | ||
|
||
concat_fragment { "${cert_dir}/${domain}.key key": | ||
|
Oops, something went wrong.