Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "provisioners": [
- {
- "type": "file",
- "source": "files/partition.sh",
- "destination": "/tmp/partition.sh"
- },
- {
- "type": "shell",
- "inline": [
- "#!/bin/bash -x",
- "sudo apt-get update",
- "sudo apt-get dist-upgrade -y",
- "sudo apt-get update",
- "sudo apt-get install lvm2 rsync -y",
- "sudo mv /tmp/partition.sh /opt/partition.sh",
- "sudo chmod a+x /opt/partition.sh",
- "sudo -E /opt/partition.sh",
- "sudo rm /opt/partition.sh"
- ]
- },
- {
- "type": "file",
- "source": "files/ubuntu_ami.sh",
- "destination": "/tmp/ubuntu_ami.sh"
- },
- {
- "type": "shell",
- "inline": [
- "#!/bin/bash -x",
- "sudo mv /tmp/ubuntu_ami.sh /opt/ubuntu_ami.sh",
- "sudo chmod a+x /opt/ubuntu_ami.sh",
- "sudo /opt/ubuntu_ami.sh",
- "sudo rm /opt/ubuntu_ami.sh"
- ]
- },
- {
- "type": "shell",
- "inline": [
- "#!/bin/bash -x",
- "echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections",
- "sudo apt-add-repository ppa:webupd8team/java -y",
- "sudo apt-get update -y",
- "sudo apt-get install oracle-java7-installer -y"
- ],
- "only": ["ubuntu_infra_vagrant_java"]
- }
- ],
- "post-processors": [
- {
- "type": "vagrant",
- "output": "packer_{{.BuildName}}_{{.Provider}}.box",
- "only": ["ubuntu_infra_vagrant_java", "ubuntu_infra_vagrant"]
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement