Skip to content

Commit d16a061

Browse files
committed
Merge branch 'release/v0.5.3'
2 parents 6ba864e + 385dfbc commit d16a061

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

Diff for: puppeter/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from typing import Type
55

66
# The version of the app
7-
__version__ = '0.5.2'
7+
__version__ = '0.5.3'
88
__program__ = 'puppeter'
99

1010

Diff for: puppeter/persistence/gateway/bash-libraries.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
set +x
33
function reload_shell {
4-
set +e
4+
set +ex
55
local files='~/.bash_profile ~/.bash_login ~/.profile'
66
if [ -f /etc/profile ]; then
77
. /etc/profile
@@ -12,6 +12,6 @@ function reload_shell {
1212
break
1313
fi
1414
done
15-
set -e
15+
set -ex
1616
}
1717
set -x

Diff for: puppeter/persistence/gateway/csr.pp

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
file { "${settings::confdir}/csr_attributes.yaml":
22
ensure => 'file',
3-
owner => 'puppet',
4-
group => 'puppet',
53
mode => '0640',
64
content => '@{content}'
75
}

Diff for: puppeter/persistence/gateway/installer/redhat/puppetagent.sh

+1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ set +e
33
if ! rpm -q 'puppet-agent'; then
44
set -e
55
yum install -y puppet-agent
6+
reload_shell
67
fi

Diff for: puppeter/persistence/gateway/set-fqdn.sh

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/env bash
2-
puppet resource host '@{fqdn}' ensure=present host_aliases='@{hostname}' ip=127.0.0.1 comment='FQDN'
3-
hostname '@{hostname}'
4-
reload_shell
2+
if [[ "$(hostname -f)" != '@{fqdn}' ]]; then
3+
puppet resource host '@{fqdn}' ensure=present host_aliases='@{hostname}' ip=127.0.0.1 comment='FQDN'
4+
hostname '@{hostname}'
5+
reload_shell
6+
fi

0 commit comments

Comments
 (0)