Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ggeldenhuis/ebf756997bc8f6336a29 to your computer and use it in GitHub Desktop.
Save ggeldenhuis/ebf756997bc8f6336a29 to your computer and use it in GitHub Desktop.
# This goes into the second-stage.ps1.erb file that can be found in the razor task directory.
# At this stage of the install you dealing with temporary drive letters.
# Creating file to ensure we include assured facts in Puppet Cert
New-Item -ItemType directory -Path "$($osDrive)\ProgramData\PuppetLabs\puppet\etc"
$csrattributes = "---`r`nextension_requests:`r`n `"1.3.6.1.4.1.34380.1.1.100`": Farnborough`r`n"
$csrattributes | out-file -Encoding ascii "$($osDrive)\ProgramData\PuppetLabs\puppet\etc\csr_attributes.yaml"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment