-
Notifications
You must be signed in to change notification settings - Fork 130
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
6 changed files
with
31 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
--- | ||
# PuppetCA management | ||
# Can be true, false, or http/https to enable just one of the protocols | ||
:enabled: <%= @module_enabled %> | ||
:ssldir: <%= scope.lookupvar("foreman_proxy::ssldir") %> | ||
|
||
# valid providers: | ||
# - puppetca_hostname_whitelisting (verify CSRs based on a hostname whitelist) | ||
# - puppetca_token_whitelisting (verify CSRs based on a token whitelist) | ||
:use_provider: <%= scope.lookupvar("foreman_proxy::puppetca_provider") %> | ||
|
||
# Puppet version used | ||
:puppet_version: <%= @puppetversion %> |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
# URL of the puppet master itself for API requests. | ||
:puppet_url: <%= scope.lookupvar("foreman_proxy::puppet_url") %> | ||
# | ||
# SSL certificates used to access the CA API. | ||
:puppet_ssl_ca: <%= scope.lookupvar("foreman_proxy::puppet_ssl_ca") %> | ||
:puppet_ssl_cert: <%= scope.lookupvar("foreman_proxy::puppet_ssl_cert") %> | ||
:puppet_ssl_key: <%= scope.lookupvar("foreman_proxy::puppet_ssl_key") %> |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
:ssldir: <%= scope.lookupvar("foreman_proxy::ssldir") %> | ||
#:puppetca_use_sudo: true | ||
#:sudo_command: /usr/bin/sudo |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<% if scope.lookupvar("foreman_proxy::puppetca") -%> | ||
<% if @puppetca_sudo -%> | ||
<%= scope.lookupvar("foreman_proxy::user") %> ALL = (root) NOPASSWD : <%= scope.lookupvar("foreman_proxy::puppetca_cmd") %> * | ||
<% end -%> | ||
<% if scope.lookupvar("foreman_proxy::puppet") and scope.lookupvar("foreman_proxy::puppetrun_provider") == 'puppetrun' -%> | ||
<% if @puppetrun_sudo -%> | ||
<%= scope.lookupvar("foreman_proxy::user") %> ALL = (<%= scope.lookupvar("foreman_proxy::puppet_user") %>) NOPASSWD : <%= scope.lookupvar("foreman_proxy::puppetrun_cmd") %> * | ||
<% end -%> | ||
Defaults:<%= scope.lookupvar("foreman_proxy::user") %> !requiretty |
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