Skip to content

Commit

Permalink
changing taint and label to fqdn (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
davejrt authored and scotty-c committed Mar 5, 2018
1 parent d649514 commit 324f32f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions manifests/kube_addons.pp
Expand Up @@ -76,8 +76,8 @@

if $controller {
exec { 'Assign master role to controller':
command => "kubectl label node ${::hostname} node-role.kubernetes.io/master=",
unless => "kubectl describe nodes ${::hostname} | tr -s ' ' | grep 'Roles: master'",
command => "kubectl label node ${::fqdn} node-role.kubernetes.io/master=",
unless => "kubectl describe nodes ${::fqdn} | tr -s ' ' | grep 'Roles: master'",
}

if $taint_master {
Expand All @@ -92,9 +92,9 @@
}

exec { 'Taint master node':
command => "kubectl taint nodes ${::hostname} key=value:NoSchedule",
command => "kubectl taint nodes ${::fqdn} key=value:NoSchedule",
onlyif => 'kubectl get nodes',
unless => "kubectl describe nodes ${::hostname} | tr -s ' ' | grep 'Taints: key=value:NoSchedule'"
unless => "kubectl describe nodes ${::fqdn} | tr -s ' ' | grep 'Taints: key=value:NoSchedule'"
}
}
}
Expand Down

0 comments on commit 324f32f

Please sign in to comment.