Skip to content
Snippets Groups Projects
Unverified Commit 9b56af4b authored by Alessandro Franceschi's avatar Alessandro Franceschi Committed by GitHub
Browse files

Merge pull request #343 from yosnoop/allow-substring-hostname

#342: Allow substring hostname
parents 8c93a324 574cd711
No related branches found
No related tags found
No related merge requests found
...@@ -358,7 +358,7 @@ class network ( ...@@ -358,7 +358,7 @@ class network (
'7','8': { '7','8': {
exec { 'sethostname': exec { 'sethostname':
command => "/usr/bin/hostnamectl set-hostname ${manage_hostname}", command => "/usr/bin/hostnamectl set-hostname ${manage_hostname}",
unless => "/usr/bin/hostnamectl status | grep 'Static hostname: ${manage_hostname}'", unless => "/usr/bin/hostnamectl status | grep 'Static hostname: ${manage_hostname}$'",
} }
} }
default: {} default: {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment