See this code
https://github.com/chef/bento/blob/master/packer_templates/centos/scripts/cleanup.sh#L15
On Thu, Oct 17, 2019, 02:31 Mauricio Tavares wrote:
> So I have packer create a centos image, but when it saves (creates) it, it
> saves the old mac address, associating it with the default
So I have packer create a centos image, but when it saves (creates) it, it
saves the old mac address, associating it with the default interface. Is
there a way to remove that so when I create a vm guest based on said image
it will configure the default interface based on whatever mac/uuid it is
Rickard,
Appreciate the prompt reply.
With that in mind, I'll probably use Powershell scripting or AWS CLI in the
Providers section to set the tags, using a specific tag file to read from ,
for the relevant build.
Jim
--
This mailing list is governed under the HashiCorp Community Guidelines
Hello,
I'm running powershell scripts with:
"provisioners": [{ "type": "powershell", "scripts": [
"scripts/step1.ps1", "scripts/step2.ps1", "scripts/step3.ps1" ]}]
I would like binaries added at one step to be callable (ie available in the
path) from the next one.
It is the case when I use
It should be "sudo bash -c 'echo \'$PreserveFQDN on\' >>
/etc/rsyslog.d/server.conf'"
On Wed, Oct 16, 2019, 04:44 Anil Wadghule wrote:
> When I have following config
>
> {
> "type": "shell",
> "inline":[
> "sudo echo '$PreserveFQDN on' >>
>
No, currently this is not supported. Only single values and arrays work.
On Wed, Oct 16, 2019, 10:31 Jimster wrote:
> Hi,
>
> Been tasked with cleaning up packer code to remove duplication of explicit
> values in our working build .json files - and use a few general
> *var-files* that will
Also - you are calling your Bootstrap *twice*.
Once in the Builders section (because you have user_data_file set) and then
again in the Provisioners section:
{
"type": "powershell",
"scripts": "{{user `file_source`}}/Bootstrap-winrm.ps1"
},{...
You don't need to do it twice, it
Have you also checked your firewalls are open for the relevant winRM ports
being used? Both on the server being provisioned (Windows Firewall) and in
your corp infrastructure and security group? (I am AWS but the therory is
the same)
I am using the following userdata file for WinRM and this
Hi,
Been tasked with cleaning up packer code to remove duplication of explicit
values in our working build .json files - and use a few general *var-files*
that will contain the relevant DEV, TEST and PROD instance types, vpc
details, disk sizes etc.
One of the builders sections we use are
Hello,
I've been running successfully packer and terraform with WinRM on AWS with
this script
https://gitlab.com/sbarthelemy/conan-public-recipes/blob/master/ci/packer/scripts/ec2-winrm.ps1
An important part was to undo the setup at the end in a tear-down step.
(I'm not sure it applies to you,
10 matches
Mail list logo