This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Rename old "cibox" to "cikit"

  • Loading branch information...
BR0kEN- committed Dec 24, 2016
1 parent a812c95 commit 58c949b1d2cf79deb3a8c742a1f489957a5862f0
Showing with 190 additions and 192 deletions.
  1. +1 −1 .gitignore
  2. +19 −19 README.md
  3. +1 −1 cibox → cikit
  4. +1 −1 cmf/all/.gitignore
  5. +2 −2 cmf/all/README.md
  6. +6 −6 cmf/all/Vagrantfile
  7. +4 −4 cmf/all/provisioners/{cibox/cibox.rb → cikit/cikit.rb}
  8. +3 −3 cmf/all/provisioners/{cibox → cikit}/config.rb
  9. +4 −4 cmf/all/provisioners/{cibox → cikit}/provisioner.rb
  10. +3 −3 cmf/all/scripts/tests.yml
  11. +1 −1 cmf/drupal/all/scripts/templates/behat.j2
  12. +1 −1 cmf/wordpress/4/scripts/templates/behat.j2
  13. +4 −4 matrix/README.md
  14. +6 −6 matrix/docs/droplet/ANSIBLE.md
  15. +3 −3 matrix/docs/droplet/UI.md
  16. +1 −1 matrix/matrix.yml
  17. +1 −1 matrix/roles/virtualmachine/tasks/droplet/modifyhd.yml
  18. +1 −1 scripts/jenkins-job.yml
  19. +21 −21 scripts/provision.yml
  20. +2 −2 scripts/repository.yml
  21. +1 −1 scripts/roles/ansible-composer/templates/config.json.j2
  22. +0 −2 scripts/roles/cibox-nodejs/defaults/main.yml
  23. +0 −3 scripts/roles/cibox-nodejs/tasks/main.yml
  24. +0 −29 scripts/roles/cibox-php/tasks/configure.yml
  25. +0 −34 scripts/roles/cibox-php/tasks/main.yml
  26. +0 −2 scripts/roles/cibox-ssl-config/defaults/main.yml
  27. 0 scripts/roles/{cibox-jenkins → cikit-jenkins}/defaults/main.yml
  28. BIN scripts/roles/{cibox-jenkins → cikit-jenkins}/files/userContent/theme/images/cikit.png
  29. 0 scripts/roles/{cibox-jenkins → cikit-jenkins}/files/userContent/theme/main.css
  30. 0 scripts/roles/{cibox-jenkins → cikit-jenkins}/files/userContent/theme/main.js
  31. 0 scripts/roles/{cibox-jenkins → cikit-jenkins}/handlers/main.yml
  32. 0 scripts/roles/{cibox-jenkins → cikit-jenkins}/tasks/cli.yml
  33. 0 scripts/roles/{cibox-jenkins → cikit-jenkins}/tasks/install.yml
  34. 0 scripts/roles/{cibox-jenkins → cikit-jenkins}/tasks/jobs.yml
  35. 0 scripts/roles/{cibox-jenkins → cikit-jenkins}/tasks/main.yml
  36. 0 scripts/roles/{cibox-jenkins → cikit-jenkins}/tasks/repo.yml
  37. 0 .../{cibox-jenkins → cikit-jenkins}/templates/configs/com.cloudbees.jenkins.GitHubPushTrigger.xml.j2
  38. 0 scripts/roles/{cibox-jenkins → cikit-jenkins}/templates/configs/config.xml.j2
  39. 0 scripts/roles/{cibox-jenkins → cikit-jenkins}/templates/configs/credentials.xml.j2
  40. 0 scripts/roles/{cibox-jenkins → cikit-jenkins}/templates/configs/hudson.maven.MavenModuleSet.xml.j2
  41. 0 ...box-jenkins → cikit-jenkins}/templates/configs/hudson.plugins.analysis.core.GlobalSettings.xml.j2
  42. 0 ...-jenkins → cikit-jenkins}/templates/configs/hudson.plugins.ansicolor.AnsiColorBuildWrapper.xml.j2
  43. 0 scripts/roles/{cibox-jenkins → cikit-jenkins}/templates/configs/hudson.plugins.git.GitSCM.xml.j2
  44. 0 scripts/roles/{cibox-jenkins → cikit-jenkins}/templates/configs/hudson.scm.CVSSCM.xml.j2
  45. 0 scripts/roles/{cibox-jenkins → cikit-jenkins}/templates/configs/hudson.scm.SubversionSCM.xml.j2
  46. 0 scripts/roles/{cibox-jenkins → cikit-jenkins}/templates/configs/hudson.tasks.Ant.xml.j2
  47. 0 scripts/roles/{cibox-jenkins → cikit-jenkins}/templates/configs/hudson.tasks.Mailer.xml.j2
  48. 0 scripts/roles/{cibox-jenkins → cikit-jenkins}/templates/configs/hudson.tasks.Maven.xml.j2
  49. 0 scripts/roles/{cibox-jenkins → cikit-jenkins}/templates/configs/hudson.tasks.Shell.xml.j2
  50. 0 scripts/roles/{cibox-jenkins → cikit-jenkins}/templates/configs/hudson.triggers.SCMTrigger.xml.j2
  51. 0 ...ibox-jenkins → cikit-jenkins}/templates/configs/jenkins.model.ArtifactManagerConfiguration.xml.j2
  52. 0 ...pts/roles/{cibox-jenkins → cikit-jenkins}/templates/configs/jenkins.model.DownloadSettings.xml.j2
  53. 0 ...ibox-jenkins → cikit-jenkins}/templates/configs/jenkins.model.JenkinsLocationConfiguration.xml.j2
  54. 0 scripts/roles/{cibox-jenkins → cikit-jenkins}/templates/configs/jenkins.mvn.GlobalMavenConfig.xml.j2
  55. 0 ...roles/{cibox-jenkins → cikit-jenkins}/templates/configs/org.codefirst.SimpleThemeDecorator.xml.j2
  56. 0 .../templates/configs/org.jenkinsCi.plugins.projectDescriptionSetter.DescriptionSetterWrapper.xml.j2
  57. 0 ...{cibox-jenkins → cikit-jenkins}/templates/configs/org.jenkinsci.plugins.ghprb.GhprbTrigger.xml.j2
  58. 0 ...{cibox-jenkins → cikit-jenkins}/templates/configs/org.jenkinsci.plugins.gitclient.JGitTool.xml.j2
  59. 0 ...{cibox-jenkins → cikit-jenkins}/templates/configs/org.jvnet.hudson.plugins.SSHBuildWrapper.xml.j2
  60. 0 scripts/roles/{cibox-jenkins → cikit-jenkins}/templates/jenkins.j2
  61. 0 scripts/roles/{cibox-jenkins → cikit-jenkins}/templates/jobs/backup_prod_db.xml.j2
  62. +3 −3 scripts/roles/{cibox-jenkins → cikit-jenkins}/templates/jobs/builder.xml.j2
  63. 0 scripts/roles/{cibox-jenkins → cikit-jenkins}/templates/jobs/disk_usage_trigger.xml.j2
  64. +2 −2 scripts/roles/{cibox-jenkins → cikit-jenkins}/templates/jobs/pr_builder.xml.j2
  65. 0 scripts/roles/{cibox-jenkins → cikit-jenkins}/templates/jobs/server_cleaner.xml.j2
  66. 0 scripts/roles/{cibox-jenkins → cikit-jenkins}/templates/list-view.xml.j2
  67. 0 scripts/roles/{cibox-jenkins → cikit-jenkins}/vars/main.yml
  68. 0 scripts/roles/{cibox-jetty-solr → cikit-jetty-solr}/defaults/main.yml
  69. 0 scripts/roles/{cibox-jetty-solr → cikit-jetty-solr}/handlers/main.yml
  70. 0 scripts/roles/{cibox-jetty-solr → cikit-jetty-solr}/tasks/configs.yml
  71. 0 scripts/roles/{cibox-jetty-solr → cikit-jetty-solr}/tasks/cores.yml
  72. 0 scripts/roles/{cibox-jetty-solr → cikit-jetty-solr}/tasks/main.yml
  73. 0 scripts/roles/{cibox-jetty-solr → cikit-jetty-solr}/templates/jetty-logging.xml.j2
  74. 0 scripts/roles/{cibox-jetty-solr → cikit-jetty-solr}/templates/jetty.j2
  75. 0 scripts/roles/{cibox-misc → cikit-misc}/defaults/main.yml
  76. +1 −1 scripts/roles/{cibox-misc → cikit-misc}/tasks/main.yml
  77. 0 scripts/roles/{cibox-mysql-config → cikit-mysql-config}/defaults/main.yml
  78. 0 scripts/roles/{cibox-mysql-config → cikit-mysql-config}/tasks/main.yml
  79. 0 scripts/roles/{cibox-nginx → cikit-nginx}/defaults/main.yml
  80. 0 scripts/roles/{cibox-nginx → cikit-nginx}/meta/main.yml
  81. +2 −2 scripts/roles/{cibox-nginx → cikit-nginx}/tasks/main.yml
  82. +2 −2 scripts/roles/{cibox-nginx/templates/cibox.j2 → cikit-nginx/templates/cikit.j2}
  83. 0 scripts/roles/{cibox-nginx → cikit-nginx}/templates/nginx.conf.j2
  84. +2 −0 scripts/roles/cikit-nodejs/defaults/main.yml
  85. +1 −1 scripts/roles/{cibox-nodejs → cikit-nodejs}/tasks/install.yml
  86. +3 −0 scripts/roles/cikit-nodejs/tasks/main.yml
  87. +2 −2 scripts/roles/{cibox-php → cikit-php}/defaults/main.yml
  88. +29 −0 scripts/roles/cikit-php/tasks/configure.yml
  89. +1 −1 scripts/roles/{cibox-php → cikit-php}/tasks/fixtures/compile.yml
  90. +34 −0 scripts/roles/cikit-php/tasks/main.yml
  91. +3 −3 scripts/roles/{cibox-php → cikit-php}/tasks/xdebug.yml
  92. 0 scripts/roles/{cibox-php → cikit-php}/templates/extension.ini.j2
  93. +1 −1 scripts/roles/{cibox-php → cikit-php}/templates/php.ini.j2
  94. +1 −1 scripts/roles/{cibox-php → cikit-php}/vars/main.yml
  95. +1 −1 scripts/roles/{cibox-security → cikit-security}/defaults/main.yml
  96. +3 −3 scripts/roles/{cibox-security → cikit-security}/tasks/main.yml
  97. 0 scripts/roles/{cibox-security → cikit-security}/templates/htaccess.j2
  98. 0 scripts/roles/{cibox-selenium → cikit-selenium}/defaults/main.yml
  99. 0 scripts/roles/{cibox-selenium → cikit-selenium}/tasks/dependencies.yml
  100. 0 scripts/roles/{cibox-selenium → cikit-selenium}/tasks/main.yml
  101. 0 scripts/roles/{cibox-selenium → cikit-selenium}/templates/service.j2
  102. 0 scripts/roles/{cibox-sniffers → cikit-sniffers}/defaults/main.yml
  103. 0 scripts/roles/{cibox-sniffers → cikit-sniffers}/meta/main.yml
  104. 0 scripts/roles/{cibox-sniffers → cikit-sniffers}/tasks/main.yml
  105. +2 −0 scripts/roles/cikit-ssl-config/defaults/main.yml
  106. +2 −2 scripts/roles/{cibox-ssl-config → cikit-ssl-config}/tasks/main.yml
  107. 0 scripts/roles/{cibox-swap → cikit-swap}/defaults/main.yml
  108. 0 scripts/roles/{cibox-swap → cikit-swap}/tasks/main.yml
  109. +0 −6 scripts/templates/cibox.complete.sh.j2
  110. +6 −0 scripts/templates/cikit.complete.sh.j2
  111. +0 −2 scripts/test.txt
  112. +2 −2 scripts/vars/apache.yml
  113. +1 −1 scripts/vars/ports.yml
@@ -7,7 +7,7 @@
!matrix/
!scripts/

!cibox
!cikit
!config.yml

!inventory
@@ -1,18 +1,18 @@
# Continuous Integration Box
# Continuous Integration Kit

**CIBox** - is [Ansible](https://github.com/ansible/ansible) based system for deployment environment for web application development. With this tool you able to deploy local web-server based on [Vagrant](https://github.com/mitchellh/vagrant) and/or remote one.
**CIKit** - is [Ansible](https://github.com/ansible/ansible) based system for deployment environment for web application development. With this tool you able to deploy local web-server based on [Vagrant](https://github.com/mitchellh/vagrant) and/or remote one.

The power of the system - simplicity. All provisioning is the same for local and remote machines, except logic for installing additional software on remote (Jenkins, for example), but it quite simple too (just `when: not vagrant` as condition for Ansible tasks).

*Currently based on `Ubuntu 14.04 LTS (64bit)`*.

```ascii
██████╗ ██╗ ██████╗ ██████╗ ██╗ ██╗
██╔════╝ ██║ ██╔══██╗ ██╔═══██╗ ╚██╗██╔
██║ ██║ █████╔╝ ██║ ██║ ╚███╔╝
██║ ██║ ██╔═██╗ ██║ ██║ ██╔██╗
╚██████╗ ██║ ██████╔╝ ╚██████╔╝ ██╔╝ ██╗
╚═════╝ ╚═╝ ╚═════ ╚═════╝ ╚═╝ ╚═╝
██████╗ ██╗ ██╗ ██╗ ██╗ ████████╗
██╔════╝ ██║ ██║ ██╔╝ ██║ ╚══██╔══
██║ ██║ █████╔╝ ██║ ██║
██║ ██║ ██╔═██╗ ██║ ██║
╚██████╗ ██║ ██║ ██╗ ██║ ██║
╚═════╝ ╚═╝ ╚═╚═╝ ╚═╝ ╚═╝
```

## Main possibilities
@@ -27,8 +27,8 @@ The power of the system - simplicity. All provisioning is the same for local and
## Quick Start

- Add your host credentials to the `inventory` file.
- `./cibox repository --project=<NAME> [--cmf=drupal] [--version=7.51] [--without-sources]`
- `./cibox provision --project=<NAME> [--limit=<HOST>]`
- `./cikit repository --project=<NAME> [--cmf=drupal] [--version=7.51] [--without-sources]`
- `./cikit provision --project=<NAME> [--limit=<HOST>]`

The `--without-sources` option for `repository` task affected on downloading CMF sources. If you want to create an empty project - use it.

@@ -37,25 +37,25 @@ The `--without-sources` option for `repository` task affected on downloading CMF
#### Drupal 7

```shell
./cibox repository --project=test
./cikit repository --project=test
```

#### Drupal 8

```shell
./cibox repository --project=test --version=8.3.x-dev
./cikit repository --project=test --version=8.3.x-dev
```

#### WordPress 4

```shell
./cibox repository --project=test --cmf=wordpress --version=4.6.1
./cikit repository --project=test --cmf=wordpress --version=4.6.1
```

#### Add Jenkins project to existing CI server

```shell
./cibox jenkins-job --project=test [--limit=<HOST>]
./cikit jenkins-job --project=test [--limit=<HOST>]
```

**Note**: these commands should be executed on your host, not inside of virtual machine!
@@ -65,7 +65,7 @@ The `--without-sources` option for `repository` task affected on downloading CMF
Currently `provision.yml` playbook powered with tags, so you can run only part of it.

```shell
./cibox provision --tags=TAGNAME
./cikit provision --tags=TAGNAME
```

- php
@@ -94,21 +94,21 @@ ANSIBLE_ARGS="--tags=TAGNAME" vagrant provision

As you see, any set of arguments can be passed for `ansible-playbook` command.

## The power of `cibox` utility
## The power of `cikit` utility

Run with custom inventory file:

```shell
ANSIBLE_INVENTORY="/path/to/inventory" ./cibox
ANSIBLE_INVENTORY="/path/to/inventory" ./cikit
```

Run with custom set of arguments:

```shell
ANSIBLE_ARGS="-vvvv" ./cibox
ANSIBLE_ARGS="-vvvv" ./cikit
```

By default, `cibox` - is a global utility which looks for a project in `/var/www/`. But, if you specify a playbook outside of this directory, then working folder will be the path of this playbook.
By default, `cikit` - is a global utility which looks for a project in `/var/www/`. But, if you specify a playbook outside of this directory, then working folder will be the path of this playbook.

## Dependencies

@@ -131,7 +131,7 @@ elif [[ "$(uname -s)" =~ "CYGWIN" ]]; then
fi

# Pass any extra arguments for "ansible-playbook". Most useful
# case: "ANSIBLE_ARGS=-vvvv cibox reinstall"
# case: "ANSIBLE_ARGS=-vvvv cikit reinstall"
if [ -n "${ANSIBLE_ARGS}" ]; then
params+=" ${ANSIBLE_ARGS}"
fi
@@ -41,4 +41,4 @@ commentinfo.md
!Vagrantfile
!inventory
!LICENSE
!cibox
!cikit
@@ -1,4 +1,4 @@
# CIBox
# CIKit

## Statistic

@@ -32,7 +32,7 @@ vagrant ssh
Re-install web application (should be executed inside of VM).

```shell
cibox reinstall
cikit reinstall
```

### Provision
@@ -47,7 +47,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Handle port collisions.
config.vm.usable_port_range = (10200..10500)

config.vm.post_up_message = "Documentation: https://github.com/BR0kEN-/cibox
config.vm.post_up_message = "Documentation: https://github.com/BR0kEN-/cikit
██████╗ ██╗ ██████╗ ██████╗ ██╗ ██╗
██╔════╝ ██║ ██╔══██╗ ██╔═══██╗ ╚██╗██╔╝
@@ -88,22 +88,22 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
:linux__nfs_options => ["rw", "no_subtree_check", "no_root_squash", "async"]
end

config.vm.provision :cibox,
:controller => "./cibox",
config.vm.provision :cikit,
:controller => "./cikit",
:playbook => "provisioning/provision"

if ENV["REINSTALL"]
config.vm.provision :shell,
:inline => "cibox reinstall"
:inline => "cikit reinstall"
end

# Create Selenium hub.
config.vm.provision :shell,
:inline => "cibox tests",
:inline => "cikit tests",
:run => "always"

# Create Selenium node.
config.vm.provision :cibox,
config.vm.provision :cikit,
:controller => "./selenium.sh",
:playbook => "#{configValues["selenium"]}",
:run => "always"
@@ -1,14 +1,14 @@
module VagrantPlugins
module CIBox
module CIKit
class Plugin < Vagrant.plugin("2")
name "cibox"
name "cikit"

config :cibox, :provisioner do
config :cikit, :provisioner do
require_relative "config"
Config
end

provisioner :cibox do
provisioner :cikit do
require_relative "provisioner"
Provisioner
end
@@ -1,4 +1,4 @@
module VagrantPlugins::CIBox
module VagrantPlugins::CIKIt
class Config < Vagrant.plugin("2", :config)
attr_accessor :playbook
attr_accessor :controller
@@ -7,10 +7,10 @@ def validate(machine)
errors = _detected_errors

unless controller
errors << ":cibox provisioner requires :controller to be set."
errors << ":cikit provisioner requires :controller to be set."
end

{"CIBox Provisioner" => errors}
{"CIKit Provisioner" => errors}
end
end
end
@@ -1,4 +1,4 @@
module VagrantPlugins::CIBox
module VagrantPlugins::CIKit
class Provisioner < Vagrant.plugin("2", :provisioner)
def provision
result = Vagrant::Util::Subprocess.execute(
@@ -17,7 +17,7 @@ def provision
end

if not result.exit_code.zero?
raise Vagrant::Errors::VagrantError.new(), "CIBox provisioner responded with a non-zero exit status."
raise Vagrant::Errors::VagrantError.new(), "CIKit provisioner responded with a non-zero exit status."
end
end

@@ -86,7 +86,7 @@ def ansible_args

# Auto-generate "safe" inventory file based on Vagrantfile.
def ansible_inventory
inventory_content = ["# Generated by CIBox"]
inventory_content = ["# Generated by CIKit"]

# By default, in Cygwin, user's home directory is "/home/<USERNAME>" and it is not the same
# that "C:\Users\<USERNAME>". All used software (Ansible (~/.ansible), Vagrant (~/.vagrant.d),
@@ -124,7 +124,7 @@ def ansible_inventory
end
end

inventory_dir = Pathname.new(File.join(@machine.env.local_data_path.join, %w(provisioners cibox ansible)))
inventory_dir = Pathname.new(File.join(@machine.env.local_data_path.join, %w(provisioners cikit ansible)))
FileUtils.mkdir_p(inventory_dir) unless File.directory?(inventory_dir)
inventory_file = Pathname.new(File.join(inventory_dir, "inventory"))
inventory_content = inventory_content.join("\n")
@@ -1,11 +1,11 @@
# This playbook could be run in various modes:
#
# 1. Install Behat, generate "behat.yml" from template and run Selenium hub.
# cibox tests
# cikit tests
# 2. Actions from first step and run Behat tests.
# cibox tests --run
# cikit tests --run
# 3. The same as second variant, but with Xvfb service started. Tests could be run without display.
# cibox tests --run --headless
# cikit tests --run --headless
---
- hosts: localhost
gather_facts: yes
@@ -2,7 +2,7 @@

# WARNING! This file is managed by Ansible and MUST NOT be edited directly.
# If you familiar with Behat configs then edit "/var/www/scripts/templates/behat.j2"
# and run "cibox tests" to apply changes.
# and run "cikit tests" to apply changes.
default:
formatters:
html:
@@ -2,7 +2,7 @@

# WARNING! This file is managed by Ansible and MUST NOT be edited directly.
# If you familiar with Behat configs then edit "/var/www/scripts/templates/behat.j2"
# and run "cibox tests" to apply changes.
# and run "cikit tests" to apply changes.
default:
formatters:
html:
@@ -18,22 +18,22 @@ Host machine operates only by minimal set of software:

Every droplet has it own private network, which forwarded to a host. For example, you have 10 virtual server. Each of them forwards three ports: `80<NN>`, `443<NN>` and `22<NN>` (`<NN>` - is a serial number of a droplet). NGINX is listening `80<NN>` and `443<NN>` ports on a host and forwards connection inside of droplets. `80<NN>` forwards to 80, `443<NN>` - to 443. `22<NN>` forwards to 22, for SSH connections.

That's all! And that's cool! Every virtual server can be additionally provisioned by main `cibox` tool to convert it to CI server.
That's all! And that's cool! Every virtual server can be additionally provisioned by main `cikit` tool to convert it to CI server.

## Usage

Add your own host inside of `inventory` file and run the following command:

```shell
./cibox matrix/matrix.yml --limit=<HOSTNAME>
./cikit matrix/matrix.yml --limit=<HOSTNAME>
```

### Add trusted SSL certificate

Inside of the `/path/to/directory/` two files must be located: `*.crt` and `*.key`. They are will be copied and NGINX start to use them immediately.

```shell
./cibox matrix/matrix.yml --limit=<HOSTNAME> --tags=ssl --ssl-src=/path/to/directory/ --restart=nginx
./cikit matrix/matrix.yml --limit=<HOSTNAME> --tags=ssl --ssl-src=/path/to/directory/ --restart=nginx
```

## Management
@@ -43,5 +43,5 @@ You able to choose two ways to manage your virtual machines: using [Ansible](doc
## To do

- Allow to add SSH keys to a droplet on creation phase
- Reuse roles from Matrix in CIBox (`nginx`, `ssl`)
- Reuse roles from Matrix in CIKit (`nginx`, `ssl`)
- Set hostname for every new droplet
@@ -5,15 +5,15 @@ Control a situation on a physical server using `Ansible`.
## List of droplets

```shell
./cibox matrix/matrix.yml --limit=<HOSTNAME> --tags=vm --droplet-list
./cikit matrix/matrix.yml --limit=<HOSTNAME> --tags=vm --droplet-list
```

Result of execution of this command will be similar to this:

```shell
ok: [m2.propeople.com.ua] => {
"msg": [
"\"cibox01\" {f06aec56-3b0b-4a4c-9109-acf17601dc9b}"
"\"cikit01\" {f06aec56-3b0b-4a4c-9109-acf17601dc9b}"
]
}
```
@@ -23,29 +23,29 @@ On the left is the name of VM, on the right - UUID.
## Create new droplet

```shell
./cibox matrix/matrix.yml --limit=<HOSTNAME> --tags=vm --droplet-add
./cikit matrix/matrix.yml --limit=<HOSTNAME> --tags=vm --droplet-add
```

## Delete droplet

To know the name of droplet desired to delete, look at list of available droplets.

```shell
./cibox matrix/matrix.yml --limit=<HOSTNAME> --tags=vm --droplet-delete=<NAME|UUID>
./cikit matrix/matrix.yml --limit=<HOSTNAME> --tags=vm --droplet-delete=<NAME|UUID>
```

## Restart droplet

```shell
./cibox matrix/matrix.yml --limit=matrix --tags=vm --droplet-edit=<NAME|UUID>
./cikit matrix/matrix.yml --limit=matrix --tags=vm --droplet-edit=<NAME|UUID>
```

## Edit droplet

All sizes (memory and hard drive) must be in *megabytes*.

```shell
./cibox matrix/matrix.yml --limit=matrix --tags=vm --droplet-edit=<NAME|UUID> [--droplet-cpus=<NN>] [--droplet-memory=<NN>] [--droplet-size=<NN>]
./cikit matrix/matrix.yml --limit=matrix --tags=vm --droplet-edit=<NAME|UUID> [--droplet-cpus=<NN>] [--droplet-memory=<NN>] [--droplet-size=<NN>]
```

**Read lines below before changing the configuration of virtual machine!**
@@ -15,11 +15,11 @@ Visit your host, login and see the list of all droplets.
![Click on the Port forwarding](../screenshots/droplet/create/vbox5.png)
![Configure ports](../screenshots/droplet/create/vbox6.png)

When described above steps are done, then just power on a virtual machine, create a record at [inventory](/inventory#L7-L8) and provision new virtual server with main `cibox` tool.
When described above steps are done, then just power on a virtual machine, create a record at [inventory](/inventory#L7-L8) and provision new virtual server with main `cikit` tool.

`phpVirtualBox` will be available on the domain which you have to [configure](../../matrix.yml#L5). Imagine that it is: `m2.propeople.com.ua`. As you can see on the screenshots, every port ends by `01`. This means that domain for VM will be `cibox01.propeople.com.ua`.
`phpVirtualBox` will be available on the domain which you have to [configure](../../matrix.yml#L5). Imagine that it is: `m2.propeople.com.ua`. As you can see on the screenshots, every port ends by `01`. This means that domain for VM will be `cikit01.propeople.com.ua`.

Why `cibox<NN>`? [Look there](../../matrix.yml#L6) for the answer.
Why `cikit<NN>`? [Look there](../../matrix.yml#L6) for the answer.

## Delete droplet

@@ -3,7 +3,7 @@

vars:
domain: m2.propeople.com.ua
application: cibox
application: cikit
# Allow to pass "--restart=nginx,jenkins,apache" to this script and restart necessary services.
restart: ""

Oops, something went wrong.

0 comments on commit 58c949b

Please sign in to comment.