From f9c9cb52ff29f2c00793772bbb5486013c2cdb2c Mon Sep 17 00:00:00 2001 From: Alessandro Franceschi Date: Mon, 21 Nov 2016 00:58:36 +0100 Subject: [PATCH] Preliminary octocatalog integration --- .octocatalog-diff.cfg.rb | 9 +++++++++ bin/enc_cat.sh | 7 +++++++ bin/enc_cat/testos.local.yaml | 8 ++++++++ 3 files changed, 24 insertions(+) create mode 100644 .octocatalog-diff.cfg.rb create mode 100755 bin/enc_cat.sh create mode 100644 bin/enc_cat/testos.local.yaml diff --git a/.octocatalog-diff.cfg.rb b/.octocatalog-diff.cfg.rb new file mode 100644 index 00000000..13241412 --- /dev/null +++ b/.octocatalog-diff.cfg.rb @@ -0,0 +1,9 @@ +settings[:hiera_config] = 'hiera.yaml' + +settings[:enc] = 'bin/enc_cat.sh' + +# settings[:puppet_binary] = '/opt/puppetlabs/puppet/bin/puppet' + +settings[:puppetdb_url] = 'https://puppetdb:8081' +#settings[:puppetdb_ssl_ca] = '/etc/puppetlabs/puppetdb/ssl/ca.pem' +#settings[:puppetdb_ssl_client_cert] = File.read('/etc/puppetlabs/puppet/ssl/..') diff --git a/bin/enc_cat.sh b/bin/enc_cat.sh new file mode 100755 index 00000000..60bb0fa3 --- /dev/null +++ b/bin/enc_cat.sh @@ -0,0 +1,7 @@ +#!/bin/bash +repo_dir="$(dirname $0)/.." +script_dir="$(dirname $0)" +. "${script_dir}/functions" + +host=$1 +cat "${repo_dir}/bin/enc_cat/${host}.yaml" diff --git a/bin/enc_cat/testos.local.yaml b/bin/enc_cat/testos.local.yaml new file mode 100644 index 00000000..a8c24cb0 --- /dev/null +++ b/bin/enc_cat/testos.local.yaml @@ -0,0 +1,8 @@ +--- + environment: production + classes: + - profile::git + parameters: + env: development + role: ostest +