Building IBP images on solar 'master' instead of downloading them
This commit is contained in:
91
bootstrap/playbooks/files/prov.json
Normal file
91
bootstrap/playbooks/files/prov.json
Normal file
@@ -0,0 +1,91 @@
|
||||
{
|
||||
"image_data":{
|
||||
"/boot":{
|
||||
"container":"gzip",
|
||||
"uri":"http://10.20.0.2:8080/targetimages/env_1_ubuntu_1404_amd64-boot.img.gz",
|
||||
"format":"ext2"
|
||||
},
|
||||
"/":{
|
||||
"container":"gzip",
|
||||
"uri":"http://10.20.0.2:8080/targetimages/env_1_ubuntu_1404_amd64.img.gz",
|
||||
"format":"ext4"
|
||||
}
|
||||
},
|
||||
"output":"/vagrant/tmp/targetimages",
|
||||
"repos":[
|
||||
{
|
||||
"name":"ubuntu",
|
||||
"section":"main universe multiverse",
|
||||
"uri":"http://archive.ubuntu.com/ubuntu/",
|
||||
"priority":null,
|
||||
"suite":"trusty",
|
||||
"type":"deb"
|
||||
},
|
||||
{
|
||||
"name":"ubuntu-updates",
|
||||
"section":"main universe multiverse",
|
||||
"uri":"http://archive.ubuntu.com/ubuntu/",
|
||||
"priority":null,
|
||||
"suite":"trusty-updates",
|
||||
"type":"deb"
|
||||
},
|
||||
{
|
||||
"name":"ubuntu-security",
|
||||
"section":"main universe multiverse",
|
||||
"uri":"http://archive.ubuntu.com/ubuntu/",
|
||||
"priority":null,
|
||||
"suite":"trusty-security",
|
||||
"type":"deb"
|
||||
},
|
||||
{
|
||||
"name":"mos",
|
||||
"section":"main restricted",
|
||||
"uri":"http://mirror.fuel-infra.org/fwm/7.0/ubuntu/",
|
||||
"priority": 1050,
|
||||
"suite":"mos7.0",
|
||||
"type":"deb"
|
||||
}
|
||||
],
|
||||
"codename":"trusty",
|
||||
"packages": [
|
||||
"acl",
|
||||
"anacron",
|
||||
"bash-completion",
|
||||
"bridge-utils",
|
||||
"bsdmainutils",
|
||||
"build-essential",
|
||||
"cloud-init",
|
||||
"curl",
|
||||
"daemonize",
|
||||
"debconf-utils",
|
||||
"gdisk",
|
||||
"grub-pc",
|
||||
"i40e-dkms",
|
||||
"linux-firmware",
|
||||
"linux-firmware-nonfree",
|
||||
"linux-headers-generic-lts-trusty",
|
||||
"linux-image-generic-lts-trusty",
|
||||
"lvm2",
|
||||
"mcollective",
|
||||
"mdadm",
|
||||
"ntp",
|
||||
"openssh-client",
|
||||
"openssh-server",
|
||||
"puppet",
|
||||
"python-amqp",
|
||||
"ruby-augeas",
|
||||
"ruby-ipaddress",
|
||||
"ruby-json",
|
||||
"ruby-netaddr",
|
||||
"ruby-openstack",
|
||||
"ruby-shadow",
|
||||
"ruby-stomp",
|
||||
"telnet",
|
||||
"ubuntu-minimal",
|
||||
"ubuntu-standard",
|
||||
"uuid-runtime",
|
||||
"vim",
|
||||
"virt-what",
|
||||
"vlan"
|
||||
]
|
||||
}
|
||||
@@ -57,7 +57,7 @@
|
||||
|
||||
# Install bareon-api
|
||||
# Workaround is required because pbr does not handle git-eggs correctly and fails to install fuel-agent
|
||||
- shell: 'pip install git+git://github.com/prmtl/fuel-agent.git@detach_from_nailgun#egg=fuel_agent'
|
||||
- shell: 'pip install git+git://github.com/gitfred/fuel-agent.git@iso-build#egg=fuel_agent'
|
||||
- shell: pip install git+https://github.com/Mirantis/bareon-api.git
|
||||
|
||||
# Install and configure supervisor
|
||||
@@ -76,3 +76,6 @@
|
||||
|
||||
# Add nat rules so slaves have internet access via solar-dev
|
||||
- shell: iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o eth0 -j MASQUERADE
|
||||
|
||||
# build IBP images
|
||||
- shell: fa_build_image --image_build_dir /tmp/ibp --log-file /tmp/ibp-image-build.log -d --data_driver nailgun_build_image --input_data_file files/prov.json
|
||||
|
||||
Reference in New Issue
Block a user