-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Puppet8x support #32
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
# input for a ca from trocla, so that you need only | ||
# | ||
# @param trocla_options | ||
# | ||
# trocla('some_ca','x509',$trocla::ca::params::ca_options) | ||
class trocla::ca::params( | ||
$trocla_options = { | ||
class trocla::ca::params ( | ||
Hash $trocla_options = { | ||
'profiles' => ['sysdomain_nc','x509veryverylong'], | ||
'CN' => "automated-ca ${name} for ${::domain}", | ||
'CN' => "automated-ca ${name} for ${facts['networking']['domain']}", | ||
}, | ||
) { | ||
$ca_options = merge($trocla_options,{ become_ca => true, render => { certonly => true }}) | ||
$ca_options = merge($trocla_options, { become_ca => true, render => { certonly => true } }) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# manage trocla/hiera integration | ||
class trocla::master::hiera { | ||
package{'rubygem-hiera-backend-trocla': | ||
package { 'rubygem-hiera-backend-trocla': | ||
ensure => present, | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Class: trocla::master::ree | ||
# | ||
# This module manages the necessary things for trocla on a master for | ||
# RubyEnterprise installation. | ||
# | ||
# [Remember: No empty lines between comments and class definition] | ||
class trocla::master::ree { | ||
require ruby_enterprise::gems::moneta | ||
require ruby_enterprise::gems::highline | ||
|
||
ruby_enterprise::gem { 'trocla': } | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# a set of default params for various trocla usages | ||
class trocla::params( | ||
$sysdomain_profile_name = 'sysdomain_nc' | ||
){ | ||
|
||
# | ||
# @param sysdomain_profile_name | ||
# | ||
class trocla::params ( | ||
String $sysdomain_profile_name = 'sysdomain_nc' | ||
) { | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,15 @@ | |
# This will install and configure trocla with the | ||
# default yaml storage. | ||
# | ||
# [*data_file*] Where to store the passwords. | ||
# Default: /var/lib/trocla/trocla_data.yaml | ||
# This should be managed using the package. | ||
# @param manage_data_dir | ||
# @param data_file | ||
# Where to store the passwords. Default: /var/lib/trocla/trocla_data.yaml. This should be managed using the package. | ||
# @param edit_uid | ||
# | ||
class trocla::yaml ( | ||
$manage_data_dir = true, | ||
$data_file = '/var/lib/trocla/trocla_data.yaml', | ||
$edit_uid = 'puppet', | ||
Boolean $manage_data_dir = true, | ||
String $data_file = '/var/lib/trocla/trocla_data.yaml', | ||
String $edit_uid = 'puppet', | ||
) { | ||
class { 'trocla::config': | ||
edit_uid => $edit_uid, | ||
|
@@ -23,19 +25,20 @@ | |
|
||
if $manage_data_dir { | ||
$data_dir = dirname($data_file) | ||
Package<| title == 'trocla' |> -> file { | ||
$data_dir: | ||
ensure => directory, | ||
owner => $edit_uid, | ||
group => 0, | ||
mode => '0600'; | ||
file { $data_dir: | ||
ensure => directory, | ||
owner => $edit_uid, | ||
group => 0, | ||
mode => '0600', | ||
require => Package['trocla']; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the idea to use the collector is that the collector can also be empty since there might be cases where you do not have the package installed. |
||
} | ||
} | ||
Package<| title == 'trocla' |> -> file { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here with the collector |
||
file { | ||
$data_file: | ||
ensure => file, | ||
owner => $edit_uid, | ||
group => 0, | ||
mode => '0600'; | ||
ensure => file, | ||
owner => $edit_uid, | ||
group => 0, | ||
mode => '0600', | ||
require => Package['trocla']; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason for the change in indentation?