<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.christophchamp.com/index.php?action=history&amp;feed=atom&amp;title=Packer</id>
		<title>Packer - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.christophchamp.com/index.php?action=history&amp;feed=atom&amp;title=Packer"/>
		<link rel="alternate" type="text/html" href="http://wiki.christophchamp.com/index.php?title=Packer&amp;action=history"/>
		<updated>2026-04-30T09:30:07Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>http://wiki.christophchamp.com/index.php?title=Packer&amp;diff=7793&amp;oldid=prev</id>
		<title>Christoph: /* External links */</title>
		<link rel="alternate" type="text/html" href="http://wiki.christophchamp.com/index.php?title=Packer&amp;diff=7793&amp;oldid=prev"/>
				<updated>2020-04-29T18:01:42Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;External links&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 18:01, 29 April 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l90&quot; &gt;Line 90:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 90:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You can now use this Packer-created AMI to launch EC2 instances in AWS.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You can now use this Packer-created AMI to launch EC2 instances in AWS.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==See also==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [[HashiCorp]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==External links==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==External links==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Christoph</name></author>	</entry>

	<entry>
		<id>http://wiki.christophchamp.com/index.php?title=Packer&amp;diff=7325&amp;oldid=prev</id>
		<title>Christoph: /* External links */</title>
		<link rel="alternate" type="text/html" href="http://wiki.christophchamp.com/index.php?title=Packer&amp;diff=7325&amp;oldid=prev"/>
				<updated>2018-08-30T00:08:07Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;External links&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 00:08, 30 August 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l96&quot; &gt;Line 96:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 96:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Technical and Specialized Skills]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Technical and Specialized Skills]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:DevOps]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:DevOps]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Linux Command Line Tools]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Christoph</name></author>	</entry>

	<entry>
		<id>http://wiki.christophchamp.com/index.php?title=Packer&amp;diff=7320&amp;oldid=prev</id>
		<title>Christoph: Created page with &quot;HashiCorp '''Packer''' is a tool to automate the creation of any type of machine image. It embraces modern configuration management by encouraging you to use automated scripts...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.christophchamp.com/index.php?title=Packer&amp;diff=7320&amp;oldid=prev"/>
				<updated>2018-08-29T23:53:16Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;HashiCorp &amp;#039;&amp;#039;&amp;#039;Packer&amp;#039;&amp;#039;&amp;#039; is a tool to automate the creation of any type of machine image. It embraces modern configuration management by encouraging you to use automated scripts...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;HashiCorp '''Packer''' is a tool to automate the creation of any type of machine image. It embraces modern configuration management by encouraging you to use automated scripts to install and configure the software within your Packer-made images. Packer brings machine images into the modern age, unlocking untapped potential and opening new opportunities.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
; Create an AWS AMI using Ubuntu 16.04 as a base image with Docker 17.03 pre-installed&lt;br /&gt;
&lt;br /&gt;
* Packer template:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cat &amp;lt;&amp;lt; EOF &amp;gt; packer-docker-17.03-ubuntu-16.04.json&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;variables&amp;quot;: {&lt;br /&gt;
    &amp;quot;aws_access_key&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
    &amp;quot;aws_secret_key&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
    &amp;quot;region&amp;quot;: &amp;quot;us-west-2&amp;quot;&lt;br /&gt;
  },&lt;br /&gt;
  &amp;quot;builders&amp;quot;: [&lt;br /&gt;
    {&lt;br /&gt;
      &amp;quot;type&amp;quot;: &amp;quot;amazon-ebs&amp;quot;,&lt;br /&gt;
      &amp;quot;access_key&amp;quot;: &amp;quot;{{user `aws_access_key`}}&amp;quot;,&lt;br /&gt;
      &amp;quot;secret_key&amp;quot;: &amp;quot;{{user `aws_secret_key`}}&amp;quot;,&lt;br /&gt;
      &amp;quot;region&amp;quot;: &amp;quot;us-west-2&amp;quot;,&lt;br /&gt;
      &amp;quot;source_ami_filter&amp;quot;: {&lt;br /&gt;
        &amp;quot;filters&amp;quot;: {&lt;br /&gt;
          &amp;quot;virtualization-type&amp;quot;: &amp;quot;hvm&amp;quot;,&lt;br /&gt;
          &amp;quot;name&amp;quot;: &amp;quot;ubuntu/images/*ubuntu-xenial-16.04-amd64-server-*&amp;quot;,&lt;br /&gt;
          &amp;quot;root-device-type&amp;quot;: &amp;quot;ebs&amp;quot;&lt;br /&gt;
        },&lt;br /&gt;
        &amp;quot;owners&amp;quot;: [&lt;br /&gt;
          &amp;quot;099720109477&amp;quot;&lt;br /&gt;
        ],&lt;br /&gt;
        &amp;quot;most_recent&amp;quot;: true&lt;br /&gt;
      },&lt;br /&gt;
      &amp;quot;instance_type&amp;quot;: &amp;quot;t2.micro&amp;quot;,&lt;br /&gt;
      &amp;quot;ssh_username&amp;quot;: &amp;quot;ubuntu&amp;quot;,&lt;br /&gt;
      &amp;quot;ami_name&amp;quot;: &amp;quot;packer-docker-17.03-ubuntu-16.04&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
  ],&lt;br /&gt;
  &amp;quot;provisioners&amp;quot;: [&lt;br /&gt;
    {&lt;br /&gt;
      &amp;quot;type&amp;quot;: &amp;quot;shell&amp;quot;,&lt;br /&gt;
      &amp;quot;script&amp;quot;: &amp;quot;./docker-install-17.03-ubuntu-16.04.sh&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
  ]&lt;br /&gt;
}&lt;br /&gt;
EOF&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Docker install script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cat &amp;lt;&amp;lt; EOF &amp;gt;docker-install-17.03-ubuntu-16.04.sh&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
# Install Docker 17.03.2 on Ubuntu 16.04&lt;br /&gt;
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common&lt;br /&gt;
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -&lt;br /&gt;
sudo add-apt-repository &amp;quot;deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable&amp;quot;&lt;br /&gt;
sudo apt-get update -y&lt;br /&gt;
apt-cache madison docker-ce&lt;br /&gt;
sudo apt-get install -y docker-ce=17.03.2~ce-0~ubuntu-xenial&lt;br /&gt;
echo &amp;quot;docker-ce hold&amp;quot; | sudo dpkg --set-selections&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
sudo usermod -aG docker ubuntu&lt;br /&gt;
sudo systemctl enable docker&lt;br /&gt;
sudo systemctl restart docker&lt;br /&gt;
EOF&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Create Packer run script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cat &amp;lt;&amp;lt; EOF &amp;gt; packer-run.sh&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
AWS_ACCESS_KEY=&amp;quot;$1&amp;quot;&lt;br /&gt;
AWS_SECRET_KEY=&amp;quot;$2&amp;quot;&lt;br /&gt;
JSON=$3&lt;br /&gt;
packer build \&lt;br /&gt;
  -var &amp;quot;aws_access_key=${AWS_ACCESS_KEY}&amp;quot; \&lt;br /&gt;
  -var &amp;quot;aws_secret_key=${AWS_SECRET_KEY}&amp;quot; \&lt;br /&gt;
  $3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Run Packer script (example):&lt;br /&gt;
 $ bash packer-run.sh &amp;quot;&amp;lt;your_aws_access_key&amp;gt;&amp;quot; &amp;quot;&amp;lt;your_aws_secret_key&amp;gt;&amp;quot; packer-docker-17.03-ubuntu-16.04.json&lt;br /&gt;
&lt;br /&gt;
If the above packer run completes successfully, you should see something like the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
==&amp;gt; Builds finished. The artifacts of successful builds are:&lt;br /&gt;
--&amp;gt; amazon-ebs: AMIs were created:&lt;br /&gt;
us-west-2: ami-000000000000000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can now use this Packer-created AMI to launch EC2 instances in AWS.&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
* [https://www.packer.io/ Official website]&lt;br /&gt;
&lt;br /&gt;
[[Category:Technical and Specialized Skills]]&lt;br /&gt;
[[Category:DevOps]]&lt;/div&gt;</summary>
		<author><name>Christoph</name></author>	</entry>

	</feed>