1
0
mirror of https://github.com/krislamo/puppet-acme_vault synced 2024-12-16 04:40:35 +00:00

add flexible group membership

This commit is contained in:
Bob Belnap 2020-11-16 14:03:04 -05:00
parent ee9416b82f
commit 71e051477f
4 changed files with 18 additions and 2 deletions

View File

@ -82,7 +82,11 @@ Default value: `acme_vault`
##### `group` ##### `group`
group that the user belongs to. For deploy, this should probably be the webserver group group that owns the created certificates
##### `group_members`
members of the above group that will have access to created certificates. In most cases this will be the webserver group, or any other services that require reading the certs.
Default value: `acme_vault` Default value: `acme_vault`

View File

@ -4,6 +4,7 @@
class acme_vault::common ( class acme_vault::common (
$user = $::acme_vault::params::user, $user = $::acme_vault::params::user,
$group = $::acme_vault::params::group, $group = $::acme_vault::params::group,
$group_members = $::acme_vault::params::group_members,
$home_dir = $::acme_vault::params::home_dir, $home_dir = $::acme_vault::params::home_dir,
$contact_email = $::acme_vault::params::contact_email, $contact_email = $::acme_vault::params::contact_email,
$domains = $::acme_vault::params::domains, $domains = $::acme_vault::params::domains,
@ -40,6 +41,12 @@ class acme_vault::common (
mode => '0750', mode => '0750',
} }
group { $group:
ensure => present,
members => $group_members,
system => true,
}
# vault module isn't too flexible for install only, just copy in binary # vault module isn't too flexible for install only, just copy in binary
# would be nice if this worked! # would be nice if this worked!
#class { '::vault::install': #class { '::vault::install':

View File

@ -2,7 +2,8 @@
class acme_vault::params { class acme_vault::params {
# settings for acme user # settings for acme user
$user = 'acme' $user = 'acme'
$group = 'apache' $group = 'acme'
$group_members = ['apache']
$home_dir = '/home/acme_vault' $home_dir = '/home/acme_vault'
$contact_email = '' $contact_email = ''
$domains = undef $domains = undef

View File

@ -13,6 +13,10 @@
{ {
"name": "puppetlabs-concat", "name": "puppetlabs-concat",
"version_requirement": ">= 1.2.4" "version_requirement": ">= 1.2.4"
},
{
"name": "onyxpoint-gpasswd",
"version_requirement": ">= 1.1.1"
} }
], ],
"operatingsystem_support": [ "operatingsystem_support": [