Added combox recipe to deploy test environment
Esse commit está contido em:
@@ -0,0 +1 @@
|
|||||||
|
*.iso
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
{
|
||||||
|
"actions": [],
|
||||||
|
"canPull": false,
|
||||||
|
"canPush": false,
|
||||||
|
"compatibility": [],
|
||||||
|
"description": "Combox recipe for ardrone-webflight development.",
|
||||||
|
"directories": [],
|
||||||
|
"documentation": "",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"group": "root",
|
||||||
|
"mode": "755",
|
||||||
|
"name": "install.sh",
|
||||||
|
"owner": "root",
|
||||||
|
"path": "/var/lib/comodit/webflight/install.sh",
|
||||||
|
"template": {
|
||||||
|
"delimiter": {
|
||||||
|
"end": "}",
|
||||||
|
"start": "${"
|
||||||
|
},
|
||||||
|
"name": "install.sh"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"groups": [],
|
||||||
|
"handlers": [],
|
||||||
|
"name": "ardrone-webflight",
|
||||||
|
"organization": "Eschnou",
|
||||||
|
"packages": [
|
||||||
|
{
|
||||||
|
"name": "git"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "nodejs"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"parameters": [],
|
||||||
|
"price": "0.00",
|
||||||
|
"repositories": [],
|
||||||
|
"services": [],
|
||||||
|
"url": "",
|
||||||
|
"users": [],
|
||||||
|
"uuid": "B72AD380C2E611E2B891B16EAC1F0212",
|
||||||
|
"version": 10
|
||||||
|
}
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
npm install bower -g
|
||||||
Arquivo binário não exibido.
|
Depois Largura: | Altura: | Tamanho: 2.3 KiB |
@@ -0,0 +1,42 @@
|
|||||||
|
{
|
||||||
|
"vm" : {
|
||||||
|
"name": "webflight",
|
||||||
|
"memory": "512",
|
||||||
|
"ports_fw" : [["127.0.0.1", "2222", "22"], ["127.0.0.1", "3000", "3000"], ["127.0.0.1", "3001", "3001"]]
|
||||||
|
},
|
||||||
|
"applications": [
|
||||||
|
{
|
||||||
|
"name": ".combox/virtualbox-guest-additions",
|
||||||
|
"settings": {"shares":[{"name":"default", "mount":"/opt/ardrone-webflight"}]}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": ".combox/ardrone-webflight",
|
||||||
|
"settings": {}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"distribution": {
|
||||||
|
"name" : "CentOS 6 (Kickstart)",
|
||||||
|
"store_uuid": "27D7AD10438A11E2AD1EB0A1AC1F0212",
|
||||||
|
"settings" : {
|
||||||
|
"install_tree_url": "http://ftp.heanet.ie/pub/centos/6/os/i386/",
|
||||||
|
"root_password": "secret",
|
||||||
|
"repos": [
|
||||||
|
{
|
||||||
|
"base_url": "http://ftp.heanet.ie/pub/fedora/epel/6/i386/",
|
||||||
|
"name": "epel",
|
||||||
|
"release": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"base_url": "http://ftp.heanet.ie/pub/centos/6/updates/i386/",
|
||||||
|
"name": "updates",
|
||||||
|
"release": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"base_url": "http://dl.comodit.com/pub/centos/6/i386/",
|
||||||
|
"name": "comodit",
|
||||||
|
"release": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
{
|
||||||
|
"canPull": false,
|
||||||
|
"canPush": false,
|
||||||
|
"description": "Install virtual box guest additions and configure mount points.",
|
||||||
|
"directories": [
|
||||||
|
{
|
||||||
|
"group": "root",
|
||||||
|
"mode": "755",
|
||||||
|
"name": "ComodIT Logs",
|
||||||
|
"owner": "root",
|
||||||
|
"path": "/var/log/comodit/virtualbox/"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"documentation": "",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"group": "root",
|
||||||
|
"mode": "755",
|
||||||
|
"name": "install.sh",
|
||||||
|
"owner": "root",
|
||||||
|
"path": "/var/lib/comodit/applications/virtualbox/install.sh",
|
||||||
|
"template": {
|
||||||
|
"delimiter": {
|
||||||
|
"end": "}",
|
||||||
|
"start": "${"
|
||||||
|
},
|
||||||
|
"name": "install.sh"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"groups": [],
|
||||||
|
"handlers": [
|
||||||
|
{
|
||||||
|
"do": [
|
||||||
|
{
|
||||||
|
"action": "execute",
|
||||||
|
"resource": "file://install.sh"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"on": [
|
||||||
|
"_install"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"name": "virtualbox-guest-additions",
|
||||||
|
"packages": [],
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"description": "",
|
||||||
|
"key": "shares",
|
||||||
|
"name": "Shares",
|
||||||
|
"schema": {
|
||||||
|
"items": {
|
||||||
|
"properties": {
|
||||||
|
"mount": {
|
||||||
|
"description": "Share mount point",
|
||||||
|
"pretty": "Mount point",
|
||||||
|
"required": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "Share name",
|
||||||
|
"pretty": "Name",
|
||||||
|
"required": true,
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"version": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"price": "0.00",
|
||||||
|
"repositories": [],
|
||||||
|
"services": [],
|
||||||
|
"url": "https://www.virtualbox.org/",
|
||||||
|
"users": []
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
(
|
||||||
|
|
||||||
|
# Install additional packages
|
||||||
|
yum -y install gcc make gcc-c++ kernel-devel zlib-devel openssl-devel readline-devel sqlite-devel perl wget dkms nfs-utils
|
||||||
|
|
||||||
|
# Install guest additions
|
||||||
|
cd /tmp
|
||||||
|
wget http://download.virtualbox.org/virtualbox/4.2.8/VBoxGuestAdditions_4.2.8.iso
|
||||||
|
mount -o loop VBoxGuestAdditions_4.2.8.iso /mnt
|
||||||
|
sh /mnt/VBoxLinuxAdditions.run
|
||||||
|
|
||||||
|
# Delete iso
|
||||||
|
umount /mnt
|
||||||
|
rm VBoxGuestAdditions_4.2.8.iso
|
||||||
|
|
||||||
|
# Add mount points if any
|
||||||
|
|
||||||
|
<#if shares??>
|
||||||
|
<#list shares as share>
|
||||||
|
|
||||||
|
mkdir -p ${share.mount}
|
||||||
|
echo -e "${share.name}\t\t${share.mount}\tvboxsf\tdefaults\t0 0" >> /etc/fstab
|
||||||
|
mount ${share.mount}
|
||||||
|
|
||||||
|
</#list>
|
||||||
|
</#if>
|
||||||
|
|
||||||
|
) > /var/log/comodit/virtualbox/install.log 2>&1
|
||||||
Arquivo binário não exibido.
|
Depois Largura: | Altura: | Tamanho: 2.3 KiB |
Referência em uma Nova Issue
Bloquear um usuário