From ec95254388463f23ec283987562c4bb7689fc3d2 Mon Sep 17 00:00:00 2001 From: satya <38804803+satyamuralidhar@users.noreply.github.com> Date: Sat, 18 Jul 2020 20:47:53 +0530 Subject: [PATCH 1/7] Create apache.json --- examples/apache server/apache.json | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 examples/apache server/apache.json diff --git a/examples/apache server/apache.json b/examples/apache server/apache.json new file mode 100644 index 000000000..331f21138 --- /dev/null +++ b/examples/apache server/apache.json @@ -0,0 +1,34 @@ + + + +{ + "variables": + { + "accesskey": "", + "secretkey": "", + "shellpath": "packages.sh" + }, + "builders":[ + { + "type": "amazon-ebs", + "access_key": "{{user `accesskey`}}", + "secret_key": "{{user `secretkey`}}", + "region": "ap-south-1", + "source_ami": "ami-sa7608343426b", + "instance_type": "t2.micro", + "ssh_username": "ubuntu", + "ami_name": "apache", + "tags": { + "OS_Version": "Ubuntu", + "Release": "Latest" + } + } + ], + "provisioners":[ + { + "type": "shell", + "script": "{{user `shellpath`}}" + } + ] + +} From 62aac351b81c302b839abda9e487fa0838a6a295 Mon Sep 17 00:00:00 2001 From: satya <38804803+satyamuralidhar@users.noreply.github.com> Date: Sat, 18 Jul 2020 20:52:00 +0530 Subject: [PATCH 2/7] Create packages.sh --- examples/apache server/packages.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 examples/apache server/packages.sh diff --git a/examples/apache server/packages.sh b/examples/apache server/packages.sh new file mode 100644 index 000000000..0a72ab5e4 --- /dev/null +++ b/examples/apache server/packages.sh @@ -0,0 +1,5 @@ +echo "installing apache " +sudo apt-get update +sudo apt-get install apache2 -y +sudo apt-get update +sudo service apache2 restart From b68b65e96031ed7983ebf410f2f57c0df8d2ee9a Mon Sep 17 00:00:00 2001 From: satya <38804803+satyamuralidhar@users.noreply.github.com> Date: Sat, 18 Jul 2020 20:52:40 +0530 Subject: [PATCH 3/7] Create README.Md --- examples/apache server/README.Md | 1 + 1 file changed, 1 insertion(+) create mode 100644 examples/apache server/README.Md diff --git a/examples/apache server/README.Md b/examples/apache server/README.Md new file mode 100644 index 000000000..e46c898fd --- /dev/null +++ b/examples/apache server/README.Md @@ -0,0 +1 @@ +command: packer build -var "accesskey=*" -var "secretkey=" -var "shellpath=packages.sh" .\apache.json From 740773d3214c809a00aa9a0671de108d21c33263 Mon Sep 17 00:00:00 2001 From: satya <38804803+satyamuralidhar@users.noreply.github.com> Date: Thu, 23 Jul 2020 11:11:55 +0530 Subject: [PATCH 4/7] Create apache_server --- examples/amazon/apache_server | 1 + 1 file changed, 1 insertion(+) create mode 100644 examples/amazon/apache_server diff --git a/examples/amazon/apache_server b/examples/amazon/apache_server new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/examples/amazon/apache_server @@ -0,0 +1 @@ + From 47bc5069ab57963466a9ab5cb1255fac026f65e8 Mon Sep 17 00:00:00 2001 From: satya <38804803+satyamuralidhar@users.noreply.github.com> Date: Thu, 23 Jul 2020 11:14:55 +0530 Subject: [PATCH 5/7] Delete apache_server --- examples/amazon/apache_server | 1 - 1 file changed, 1 deletion(-) delete mode 100644 examples/amazon/apache_server diff --git a/examples/amazon/apache_server b/examples/amazon/apache_server deleted file mode 100644 index 8b1378917..000000000 --- a/examples/amazon/apache_server +++ /dev/null @@ -1 +0,0 @@ - From d5bfe0b869803f953400aaabbbba71f7ec455a08 Mon Sep 17 00:00:00 2001 From: satyamuralidhar Date: Thu, 23 Jul 2020 11:23:16 +0530 Subject: [PATCH 6/7] new chage --- examples/amazon/apache server/README.Md | 1 + examples/amazon/apache server/apache.json | 34 +++++++++++++++++++++++ examples/amazon/apache server/packages.sh | 5 ++++ 3 files changed, 40 insertions(+) create mode 100644 examples/amazon/apache server/README.Md create mode 100644 examples/amazon/apache server/apache.json create mode 100644 examples/amazon/apache server/packages.sh diff --git a/examples/amazon/apache server/README.Md b/examples/amazon/apache server/README.Md new file mode 100644 index 000000000..e46c898fd --- /dev/null +++ b/examples/amazon/apache server/README.Md @@ -0,0 +1 @@ +command: packer build -var "accesskey=*" -var "secretkey=" -var "shellpath=packages.sh" .\apache.json diff --git a/examples/amazon/apache server/apache.json b/examples/amazon/apache server/apache.json new file mode 100644 index 000000000..331f21138 --- /dev/null +++ b/examples/amazon/apache server/apache.json @@ -0,0 +1,34 @@ + + + +{ + "variables": + { + "accesskey": "", + "secretkey": "", + "shellpath": "packages.sh" + }, + "builders":[ + { + "type": "amazon-ebs", + "access_key": "{{user `accesskey`}}", + "secret_key": "{{user `secretkey`}}", + "region": "ap-south-1", + "source_ami": "ami-sa7608343426b", + "instance_type": "t2.micro", + "ssh_username": "ubuntu", + "ami_name": "apache", + "tags": { + "OS_Version": "Ubuntu", + "Release": "Latest" + } + } + ], + "provisioners":[ + { + "type": "shell", + "script": "{{user `shellpath`}}" + } + ] + +} diff --git a/examples/amazon/apache server/packages.sh b/examples/amazon/apache server/packages.sh new file mode 100644 index 000000000..0a72ab5e4 --- /dev/null +++ b/examples/amazon/apache server/packages.sh @@ -0,0 +1,5 @@ +echo "installing apache " +sudo apt-get update +sudo apt-get install apache2 -y +sudo apt-get update +sudo service apache2 restart From b88dede2340ac728b7b5acf9934a5ad2d18e877d Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Thu, 23 Jul 2020 11:28:55 -0700 Subject: [PATCH 7/7] moved example files --- .../README.Md | 0 .../apache.json | 0 .../packages.sh | 0 examples/apache server/README.Md | 1 - examples/apache server/apache.json | 34 ------------------- examples/apache server/packages.sh | 5 --- 6 files changed, 40 deletions(-) rename examples/amazon/{apache server => apache_server}/README.Md (100%) rename examples/amazon/{apache server => apache_server}/apache.json (100%) rename examples/amazon/{apache server => apache_server}/packages.sh (100%) delete mode 100644 examples/apache server/README.Md delete mode 100644 examples/apache server/apache.json delete mode 100644 examples/apache server/packages.sh diff --git a/examples/amazon/apache server/README.Md b/examples/amazon/apache_server/README.Md similarity index 100% rename from examples/amazon/apache server/README.Md rename to examples/amazon/apache_server/README.Md diff --git a/examples/amazon/apache server/apache.json b/examples/amazon/apache_server/apache.json similarity index 100% rename from examples/amazon/apache server/apache.json rename to examples/amazon/apache_server/apache.json diff --git a/examples/amazon/apache server/packages.sh b/examples/amazon/apache_server/packages.sh similarity index 100% rename from examples/amazon/apache server/packages.sh rename to examples/amazon/apache_server/packages.sh diff --git a/examples/apache server/README.Md b/examples/apache server/README.Md deleted file mode 100644 index e46c898fd..000000000 --- a/examples/apache server/README.Md +++ /dev/null @@ -1 +0,0 @@ -command: packer build -var "accesskey=*" -var "secretkey=" -var "shellpath=packages.sh" .\apache.json diff --git a/examples/apache server/apache.json b/examples/apache server/apache.json deleted file mode 100644 index 331f21138..000000000 --- a/examples/apache server/apache.json +++ /dev/null @@ -1,34 +0,0 @@ - - - -{ - "variables": - { - "accesskey": "", - "secretkey": "", - "shellpath": "packages.sh" - }, - "builders":[ - { - "type": "amazon-ebs", - "access_key": "{{user `accesskey`}}", - "secret_key": "{{user `secretkey`}}", - "region": "ap-south-1", - "source_ami": "ami-sa7608343426b", - "instance_type": "t2.micro", - "ssh_username": "ubuntu", - "ami_name": "apache", - "tags": { - "OS_Version": "Ubuntu", - "Release": "Latest" - } - } - ], - "provisioners":[ - { - "type": "shell", - "script": "{{user `shellpath`}}" - } - ] - -} diff --git a/examples/apache server/packages.sh b/examples/apache server/packages.sh deleted file mode 100644 index 0a72ab5e4..000000000 --- a/examples/apache server/packages.sh +++ /dev/null @@ -1,5 +0,0 @@ -echo "installing apache " -sudo apt-get update -sudo apt-get install apache2 -y -sudo apt-get update -sudo service apache2 restart