aboutsummaryrefslogtreecommitdiffstats
path: root/mcp
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2019-02-18 23:08:30 +0100
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2019-02-26 13:55:27 +0000
commite9e92be47119b7a0f8c4f1cce3c27be3e36418f2 (patch)
tree9fdae22dd8a05d2cd217766eba4989ce69c6923a /mcp
parentdf38b6fd10ebc89f2a45e2b226e210803c1b1e99 (diff)
[cfg01] Reduce mine_interval to 15 min
Some PODs are fast enough to get past installing, syncing and using MaaS to provision the OS on the baremetal nodes before the 1h mine refresh. Since mine.update operation is fast enough to go unnoticed and we only collect IP addresses, grains and pem entries, schedule it every 15 minutes. Due to reclass class inheritance, we can't easily override this via pillar data, so handle it via entrypoint.sh. Change-Id: I0d8ed2da838ad09c94e9327d0131d3e239de4f08 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> (cherry picked from commit 90208ef02e80c127b662dd6e7e3ca9db05d69048)
Diffstat (limited to 'mcp')
-rwxr-xr-xmcp/scripts/docker-compose/files/entrypoint.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcp/scripts/docker-compose/files/entrypoint.sh b/mcp/scripts/docker-compose/files/entrypoint.sh
index 0199c3901..244fb9bc7 100755
--- a/mcp/scripts/docker-compose/files/entrypoint.sh
+++ b/mcp/scripts/docker-compose/files/entrypoint.sh
@@ -26,7 +26,7 @@ fi
# salt state does not properly configure file_roots in master.conf, hard set it
cp -a /root/fuel/mcp/scripts/docker-compose/files/opnfv_master.conf \
/etc/salt/master.d/opnfv_master.conf
-echo 'master: localhost' > /etc/salt/minion.d/opnfv_slave.conf
+echo -e 'master: localhost\nmine_interval: 15' > /etc/salt/minion.d/opnfv_slave.conf
# NOTE: Most Salt and/or reclass tools have issues traversing Docker mounts
# or detecting them as directories inside the container.