Skip to content

Commit

Permalink
Update refs and move defaults to init.pp
Browse files Browse the repository at this point in the history
  • Loading branch information
Joris29 committed Nov 27, 2023
1 parent e0cc8ae commit 7aa22fa
Show file tree
Hide file tree
Showing 14 changed files with 560 additions and 684 deletions.
573 changes: 341 additions & 232 deletions REFERENCE.md

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
126 changes: 0 additions & 126 deletions data/common.yaml

This file was deleted.

5 changes: 1 addition & 4 deletions hiera.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,4 @@ defaults:

hierarchy:
- name: 'Rundeck Operating System Family defaults'
path: 'os/%{facts.os.family}.yaml'

- name: 'Rundeck common defaults'
path: 'common.yaml'
path: '%{facts.os.family}.yaml'
2 changes: 1 addition & 1 deletion manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class rundeck::config {
assert_private()

$framework_config = deep_merge(lookup('rundeck::framework_config'), $rundeck::framework_config)
$framework_config = deep_merge($rundeck::framework_config)

$base_dir = $framework_config['rdeck.base']
$properties_dir = $framework_config['framework.etc.dir']
Expand Down
44 changes: 16 additions & 28 deletions manifests/config/aclpolicyfile.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,26 @@
# rundeck::config::aclpolicyfile { 'myPolicyFile':
# acl_policies => [
# {
# 'description' => 'Admin, all access',
# 'context' => {
# 'type' => 'project',
# 'rule' => '.*',
# 'description' => 'Admin, all access',
# 'context' => { 'project' => '.*' },
# 'for' => {
# 'resource' => [{ 'allow' => '*' }],
# 'adhoc' => [{ 'allow' => '*' }],
# 'job' => [{ 'allow' => '*' }],
# 'node' => [{ 'allow' => '*' }],
# },
# 'resource_types' => [
# { 'type' => 'resource', 'rules' => [{ 'name' => 'allow','rule' => '*' }] },
# { 'type' => 'adhoc', 'rules' => [{ 'name' => 'allow','rule' => '*' }] },
# { 'type' => 'job', 'rules' => [{ 'name' => 'allow','rule' => '*' }] },
# { 'type' => 'node', 'rules' => [{ 'name' => 'allow','rule' => '*' }] }
# ],
# 'by' => {
# 'group' => ['admin'],
# 'username' => undef,
# }
# 'by' => [{ 'group' => ['admin'] }],
# },
# {
# 'description' => 'Admin, all access',
# 'context' => {
# 'type' => 'application',
# 'rule' => 'rundeck',
# 'description' => 'Admin, all access',
# 'context' => { 'application' => 'rundeck' },
# 'for' => {
# 'project' => [{ 'allow' => '*' }],
# 'resource' => [{ 'allow' => '*' }],
# 'storage' => [{ 'allow' => '*' }],
# },
# 'resource_types' => [
# { 'type' => 'resource', 'rules' => [{ 'name' => 'allow','rule' => '*' }] },
# { 'type' => 'project', 'rules' => [{ 'name' => 'allow','rule' => '*' }] },
# { 'type' => 'storage', 'rules' => [{ 'name' => 'allow','rule' => '*' }] },
# ],
# 'by' => {
# 'group' => ['admin'],
# 'username' => undef,
# }
# }
# 'by' => [{ 'group' => ['admin'] }],
# },
# ],
# }
#
Expand Down
4 changes: 1 addition & 3 deletions manifests/config/framework.pp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
$_framework_ssl_config = {}
}

$_server_uuid = { 'rundeck.server.uuid' => fqdn_uuid($facts['networking']['fqdn']) }

$_framework_config = deep_merge($rundeck::config::framework_config, $_server_uuid, $_framework_ssl_config)
$_framework_config = deep_merge($rundeck::config::framework_config, $_framework_ssl_config)

file { "${rundeck::config::properties_dir}/framework.properties":
ensure => file,
Expand Down
Loading

0 comments on commit 7aa22fa

Please sign in to comment.