Skip to content

Commit

Permalink
Merge branch 'release/v0.5.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
cardil committed Aug 10, 2017
2 parents 6ba864e + 385dfbc commit d16a061
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion puppeter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from typing import Type

# The version of the app
__version__ = '0.5.2'
__version__ = '0.5.3'
__program__ = 'puppeter'


Expand Down
4 changes: 2 additions & 2 deletions puppeter/persistence/gateway/bash-libraries.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set +x
function reload_shell {
set +e
set +ex
local files='~/.bash_profile ~/.bash_login ~/.profile'
if [ -f /etc/profile ]; then
. /etc/profile
Expand All @@ -12,6 +12,6 @@ function reload_shell {
break
fi
done
set -e
set -ex
}
set -x
2 changes: 0 additions & 2 deletions puppeter/persistence/gateway/csr.pp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
file { "${settings::confdir}/csr_attributes.yaml":
ensure => 'file',
owner => 'puppet',
group => 'puppet',
mode => '0640',
content => '@{content}'
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ set +e
if ! rpm -q 'puppet-agent'; then
set -e
yum install -y puppet-agent
reload_shell
fi
8 changes: 5 additions & 3 deletions puppeter/persistence/gateway/set-fqdn.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
puppet resource host '@{fqdn}' ensure=present host_aliases='@{hostname}' ip=127.0.0.1 comment='FQDN'
hostname '@{hostname}'
reload_shell
if [[ "$(hostname -f)" != '@{fqdn}' ]]; then
puppet resource host '@{fqdn}' ensure=present host_aliases='@{hostname}' ip=127.0.0.1 comment='FQDN'
hostname '@{hostname}'
reload_shell
fi

0 comments on commit d16a061

Please sign in to comment.