summaryrefslogtreecommitdiffstats
path: root/repo/openstack/make_ppa/ubuntu/trusty/mitaka/download_pkg.tmpl
blob: 7df519de15e57f866e6264d9cc83cdad2830254e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
set -ex

#set OPV="mitaka"

# add openstack $OPV repo
sudo apt-get update && apt-get install -y software-properties-common
sudo add-apt-repository -y cloud-archive:$OPV

# add galeracluster repo
#sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
#sudo add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu trusty main'
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 D669017EBC19DDBA
sudo add-apt-repository 'deb http://releases.galeracluster.com/ubuntu trusty main'
# add oracle java8 ppa
sudo add-apt-repository ppa:webupd8team/java
# add open java7 repo
sudo add-apt-repository 'deb http://security.ubuntu.com/ubuntu trusty-security main'

sudo apt-get update

sudo apt-get install reprepro -y

sudo apt-get -d install pciutils -y

cd /var/cache/apt/
sudo apt-get download libexpat1
cd -

#download packages
#set packages = $getVar('default_packages', [])
#for pkg in $packages
sudo apt-get -d install $pkg -y
#end for
#set packages = $getVar('packages', [])
#for pkg in $packages
sudo apt-get -d install $pkg -y
#end for

#make repo
mkdir -p trusty-$OPV-ppa/conf
cat <<EOF > trusty-$OPV-ppa/conf/distributions
Codename: trusty
Components: main
Architectures: amd64
EOF

sudo apt-get install wget
wget -O /var/cache/apt/python-pyasn1_0.1.8-2_all.deb http://us.archive.ubuntu.com/ubuntu/pool/main/p/pyasn1/python-pyasn1_0.1.8-2_all.deb
rm -rf /var/cache/apt/python-pyasn1_0.1.7-1ubuntu2_all.deb

mkdir deb
find /var/cache/apt/ -name *.deb | xargs -i cp {} deb

reprepro -b trusty-$OPV-ppa includedeb trusty deb/*.deb

tar -zcvf /trusty-$OPV-ppa.tar.gz ./trusty-$OPV-ppa
="l l-Scalar l-Scalar-Plain">The required storage resource storage_location: type: string description: > Block storage mount point (filesystem path). node_templates: ellis: type: tosca.nodes.Compute capabilities: os: properties: architecture: type: distribution: version: host: properties: *compute_props_host_ellis scalable: properties: min_instances: 1 default_instances: 1 requirements: - local_storage: node: ellis_BlockStorage relationship: type: AttachesTo properties: location: { get_input:storage_location } interfaces: Standard: start: implementation: start.sh delete: implementaion: stop.sh stop: implementaion: shutdown.sh ellis_BlockStorage: type: tosca.nodes.BlockStorage properties: size: { get_input:storage_size } bono: type: tosca.nodes.Compute capabilities: os: properties: architecture: type: distribution: version: host: properties: *compute_props_host_bono scalable: properties: min_instances: 3 default_instances: 3 requirements: - local_storage: node: bono_BlockStorage relationship: type: AttachesTo properties: location: { get_input:storage_location } interfaces: Standard: start: implementation: start.sh delete: implementaion: stop.sh stop: implementaion: shutdown.sh bono_BlockStorage: type: tosca.nodes.BlockStorage properties: size: { get_input:storage_size } clearwater_network1: type:tosca.nodes.network.Network properties: ip_version:4 ellis_port1: type:tosca.nodes.network.Port requirements: - binding: node:ellis - link: node:clearwater_network1 clearwater_network2: type:tosca.nodes.network.Network properties: ip_version:4 ellis_port2: type:tosca.nodes.network.Port requirements: - binding: node:ellis - link: node:clearwater_network2 clearwater_network1: type:tosca.nodes.network.Network properties: ip_version:4 bono_port1: type:tosca.nodes.network.Port requirements: - binding: node:bono - link: node:clearwater_network1 clearwater_network2: type:tosca.nodes.network.Network properties: ip_version:4 bono_port2: type:tosca.nodes.network.Port requirements: - binding: node:bono - link: node:clearwater_network2