Thanks for replying, and it worked.
On Monday, April 29, 2019 at 6:28:46 AM UTC-4, KevinR wrote:
>
> It could be either the Powershell ExecutionPolicy, or simply a failure to
> resolve the hostname of your Puppet server. Or it could be an SSL problem,
> if the hostname you're using for the Master doesn't appear in the list of
> Subject Alternative Names in the SSL cert on the master.
>
> Try this user_data to see if it works better:
>
> <powershell>
> $hosts = "$env:windir\System32\drivers\etc\hosts"
> "<MASTER IP> <MASTER HOSTNAME>" | Add-Content -PassThru $hosts;
> Set-ExecutionPolicy Bypass -Scope Process -Force;
> [Net.ServicePointManager]::ServerCertificateValidationCallback = {$true};
> $webClient = New-Object System.Net.WebClient;
> $webClient.DownloadFile('https://<MASTER
> HOSTNAME>:8140/packages/current/install.ps1', 'install.ps1');
> .\install.ps1;
> </powershell>
>
> - Kevin Reeuwijk
> Sr Sales Engineer
> Puppet
>
> On Friday, April 26, 2019 at 9:52:53 PM UTC+2, Deo Breathnu wrote:
>>
>> I have tried to boot strap a windows 2016 ec2 instance through a launch
>> template. In the config I put
>>
>> <powershell>
>> [Net.ServicePointManager]::ServerCertificateValidationCallback = {$true};
>> $webClient = New-Object System.Net.WebClient;
>> $webClient.DownloadFile('https://<MASTER
>> HOSTNAME>:8140/packages/current/install.ps1', 'install.ps1');
>> .\install.ps1
>> </powershell>
>>
>> I of course put my puppetmaster hostname in. I have used this with method
>> of installing the agent with running ec2 servers, but I am failing here.
>>
>> I am looking for idea's as to bootstrapping a windows 2016 ec2 instance
>> with puppet 6.
>>
>> Any idea's?
>>
>>
>>
>>
>>
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/6943ee39-6cd3-4b3f-b207-403e1c9126dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.