We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9078d48 commit b68d037Copy full SHA for b68d037
1 file changed
common/configuration/puppet.yaml.tftpl
@@ -107,6 +107,10 @@ runcmd:
107
- chmod 0640 /etc/puppetlabs/puppet/eyaml/boot_private_key.pkcs7.pem
108
# Setup puppet environment code and modules
109
- rm -rf /etc/puppetlabs/code/environments/production
110
+%{ if cloud_provider == "incus" && startswith(puppetenv_git, "file://") ~}
111
+ # Incus mounts can have host ownership; allow git to read the repo safely.
112
+ - git config --system --add safe.directory /opt/magic-castle/puppetenv/.git
113
+%{ endif ~}
114
- git clone ${puppetenv_git} /etc/puppetlabs/code/environments/main
115
- ln -s /etc/puppetlabs/code/environments/main /etc/puppetlabs/code/environments/production
116
- |
0 commit comments