Browse Source

Merge "Sanitize the uuid string"

changes/54/558354/12
Zuul 4 years ago committed by Gerrit Code Review
parent
commit
a30f74a5e9
  1. 2
      puppet/extraconfig/pre_deploy/per_node.yaml

2
puppet/extraconfig/pre_deploy/per_node.yaml

@ -29,7 +29,7 @@ resources:
- name: node_lookup
config: |
#!/bin/sh
node_id=$(dmidecode --s system-uuid)
node_id=$(dmidecode --s system-uuid | awk 'match($0, /[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}/) { print substr($0, RSTART, RLENGTH) }')
# Create a /etc/puppet/hieradata/UUID.json file to provide
# the data of the NodeDataLookup parameter that matches the

Loading…
Cancel
Save