From 8f2191471bcdbc4f413f9a621d72ecf6a67b2841 Mon Sep 17 00:00:00 2001 From: Seth Miller Date: Fri, 8 Jan 2016 11:21:22 -0600 Subject: [PATCH 1/2] Replace pkgrepo with offical Saltstack repo issue #180 --- README.rst | 7 +------ salt/pkgrepo/redhat/init.sls | 11 +++++------ 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/README.rst b/README.rst index 6706b4c..fd3948a 100644 --- a/README.rst +++ b/README.rst @@ -73,12 +73,7 @@ For EL distributions, pygit is installed from packages from `EPEL `_. - -On EL distributions, the official Salt `COPR for ZeroMQ 4 `_. Salt itself is installed via `EPEL `_. +benefit from the latest version. This state currently only works on Debian, Ubuntu, RHEL 6/7 and aims to implement the `installation recommendations of the official documentation `_. ``salt.pkgrepo.absent`` ----------------------- diff --git a/salt/pkgrepo/redhat/init.sls b/salt/pkgrepo/redhat/init.sls index feb167c..a99827a 100644 --- a/salt/pkgrepo/redhat/init.sls +++ b/salt/pkgrepo/redhat/init.sls @@ -1,10 +1,9 @@ {% from "salt/map.jinja" import salt_settings with context %} -saltstack-zeromq4: +saltstack-pkgrepo: pkgrepo.managed: - - humanname: Copr repo for zeromq4 owned by saltstack - - baseurl: http://copr-be.cloud.fedoraproject.org/results/saltstack/zeromq4/{{ salt_settings.repotype }}-$releasever-$basearch/ - - gpgcheck: 1 - - gpgkey: https://copr-be.cloud.fedoraproject.org/results/saltstack/zeromq4/pubkey.gpg - - skip_if_unavailable: True + - humanname: SaltStack repo for RHEL/CentOS $releasever + - baseurl: https://repo.saltstack.com/yum/redhat/$releasever/$basearch/latest - enabled: 1 + - gpgcheck: 1 + - gpgkey: https://repo.saltstack.com/yum/redhat/$releasever/$basearch/latest/SALTSTACK-GPG-KEY.pub From ce6849247e5d309aaa2a983a888cd63b9e1ff9c2 Mon Sep 17 00:00:00 2001 From: Kevin Schmidt Date: Wed, 13 Jan 2016 13:04:22 +0000 Subject: [PATCH 2/2] add consul config support --- salt/files/master.d/f_defaults.conf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/salt/files/master.d/f_defaults.conf b/salt/files/master.d/f_defaults.conf index 770c8d9..539e913 100644 --- a/salt/files/master.d/f_defaults.conf +++ b/salt/files/master.d/f_defaults.conf @@ -1045,3 +1045,12 @@ rest_tornado: ########################################## {{ get_config('presence_events', 'False') }} {% endif %} + +{% if 'consul_config' in cfg_master %} +##### consul_config ##### +########################################## +consul_config: + {% for name, value in cfg_master['consul_config'].items() %} + {{ name }}: {{ value }} + {%- endfor %} +{%- endif %}