From af2dcce02d55a2d3dc7cbe0ae8e859819f46a74a Mon Sep 17 00:00:00 2001 From: Akond Rahman Date: Sat, 14 Jul 2018 12:12:57 -0400 Subject: [PATCH 1/3] Update params.pp remove hard-coded passwords using hiera --- manifests/params.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/params.pp b/manifests/params.pp index 09d9e52a..207549f8 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -55,7 +55,7 @@ $users_mgmt = { 'wildfly' => { - password => 'wildfly', + password => hiera('wildfly_pwd'), }, } From c20ab949ebd8f75298b8a46fae15b67b9d914f9b Mon Sep 17 00:00:00 2001 From: Akond Rahman Date: Sat, 14 Jul 2018 12:14:28 -0400 Subject: [PATCH 2/3] Create common.yaml --- hieradata/common.yaml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 hieradata/common.yaml diff --git a/hieradata/common.yaml b/hieradata/common.yaml new file mode 100644 index 00000000..6fa9a9b3 --- /dev/null +++ b/hieradata/common.yaml @@ -0,0 +1,2 @@ +--- +wildfly_pwd: 'wildfly' From 5c4dba0dc7ce9864164779ec0c1f27f94012bcae Mon Sep 17 00:00:00 2001 From: Akond Rahman Date: Sat, 14 Jul 2018 12:15:48 -0400 Subject: [PATCH 3/3] Create hiera.yaml adding hiera support --- hiera.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 hiera.yaml diff --git a/hiera.yaml b/hiera.yaml new file mode 100644 index 00000000..48cd7ff9 --- /dev/null +++ b/hiera.yaml @@ -0,0 +1,6 @@ +:hierarchy: + - common +:backends: + - yaml +:yaml: +:datadir: 'hieradata'