From a58d33e60bafb8c755961e389703ac29f3dcfbc7 Mon Sep 17 00:00:00 2001 From: Abir Majumdar Date: Fri, 1 Mar 2019 10:47:37 -0500 Subject: [PATCH] Delete vro_provisioned.pp --- site/profile/manifests/vro_provisioned.pp | 30 ----------------------- 1 file changed, 30 deletions(-) delete mode 100644 site/profile/manifests/vro_provisioned.pp diff --git a/site/profile/manifests/vro_provisioned.pp b/site/profile/manifests/vro_provisioned.pp deleted file mode 100644 index 428f632..0000000 --- a/site/profile/manifests/vro_provisioned.pp +++ /dev/null @@ -1,30 +0,0 @@ -# @summary This profile does some post agent install cleanup. -class profile::vro_provisioned { - - # any operating system-specific state for vro-provisioned machines. - # it's common to change the Administrator user name on Windows, for example. - case $::kernel { - 'Linux': { - $agent_confdir = '/etc/puppetlabs/puppet' - } - 'windows': { - $agent_confdir = 'C:/ProgramData/PuppetLabs/puppet/etc' - - #exec { 'rename-Administrator': - # command => '$(Get-WMIObject Win32_UserAccount -Filter "Name=\'Administrator\'").Rename("puppet#adm1n")', - # unless => 'if (Get-WmiObject Win32_UserAccount -Filter "Name=\'Administrator\'") { exit 1 }', - # provider => powershell, - #} - - } - default: {} - } - - # ensure that the csr_attributes.yaml file containing the shared - # autosign secret is removed on the first puppet agent run. - file { "${agent_confdir}/csr_attributes.yaml": - ensure => absent, - backup => false, - } - -}