summaryrefslogtreecommitdiffstats
path: root/ansible
AgeCommit message (Collapse)AuthorFilesLines
2019-01-21Merge "Add variable for version of rancher server"Michal Ptacek2-2/+3
2019-01-21Merge "Fix variable nfs_mount_path not found"Samuli Silvius2-1/+2
2019-01-20Merge "Handle empty runtime_images"Michal Ptacek1-1/+1
2019-01-18Merge "Fix logging problem for ansible-playbook"Michal Ptacek2-0/+7
2019-01-18Fix variable nfs_mount_path not foundMilan Verespej2-1/+2
Variable for creating nfs mount for onap nodes was in wrong group_vars file which caused the error because variable was undefined for hosts that needed it. This change moves this variable to correct file. Change-Id: If177fb23d90b8a32d70dd774dde2dfbfc697980a Issue-ID: OOM-1588 Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
2019-01-17Handle empty runtime_imagesMichal Ptacek1-1/+1
If there is no demand for docker images to be inserted into nexus during runtime, runtime_images might be empty and this will cause unhandled error with trying to insert undefined images Change-Id: I77147b64a3d288922eec5db7e7ce422ba2ed8c12 Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com> Issue-ID: OOM-1587
2019-01-17Fix docker config handling in offline installerMichal Zegan4-2/+7
This fixes adding of dns address to /etc/docker/daemon.json to always use infra's ip address instead of possibly using it's hostname. Also similar change is done in handling of /etc/resolv.conf in infrastructure.yml. Ip address is specified by the "cluster_ip" variable placed on a host. Inventory specifies ip for everything except resource server (just for consistency). Change-Id: I2baa3f4c7d69b8dff109b5f8ae984134caf2af7d Issue-ID: OOM-1573 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-01-17Add variable for version of rancher serverMilan Verespej2-2/+3
Rancher server version is hardcoded to 1.6.14 used in Beijing deployment. This limits flexibility to use it for future versions of ONAP deployments. This change adds possibility to choose version of rancher server via variable in group_vars/infrastructure.yml and setting its default value to version used by Casablanca release. Change-Id: I3a38a882386ce6adcba77780ee79a7cedfe98e4e Issue-ID: OOM-1584 Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
2019-01-17Fix logging problem for ansible-playbookPetr Ospalý2-0/+7
Ansible could not write to the log because the ansible is run inside a chroot env. and on read-only fs - this is solved by adding new rw mount. Change-Id: I874063ad99948a55f9227d5e7eae05d3eaabe535 Issue-ID: OOM-1575 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-01-08Revert "Fix the problem with ansible_host for ..."Petr Ospalý1-5/+1
This reverts commit a22f6b34a424d0ce25be7e560d8072a2e84e3ab8. This commit was merged by mistake. Change-Id: Ic73bfd8e9d97c3a23629cba69047cc0edefb9cd0 Issue-ID: OOM-1573 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-01-07Fix the problem with ansible_host for dockerPetr Ospalý1-1/+5
WIP This solves the problem with domain name without dropping the ansible_host. Ansible_host is just resolved to the ip. By using the ping command we can avoid another dependencies. Change-Id: Ic1963d3af6a8bdd68089ac8b599731e35475d81f Issue-ID: OOM-1573 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-01-07Add support for plain files mounting into chrootPetr Ospalý2-13/+28
In this commit I tried to follow a behaviour of docker. If mounted path does not exist then it will handle it as a directory - it creates it and the mountpoint is expected to be a directory also. If the mounted path is a plain file it will do file bind mounting. The mountpoint must be a plain file. Change-Id: Ie8b29442c8ebb8da389ba6c9a152a49d8cf6e9be Issue-ID: OOM-1575 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-01-07Merge "Fix docker config handling in offline installer"Petr Ospalý1-1/+1
2019-01-04Fix docker config handling in offline installerMichal Zegan1-1/+1
This fixes adding of dns address to /etc/docker/daemon.json to always use infra's ip address instead of possibly using it's hostname. It is done by replacing usage of "ansible_host" by "ansible_default_ipv4.address" fact. Change-Id: If6a29f3bf11ece7f883b099a1ab503341859cb90 Issue-ID: OOM-1573 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-01-03Add /etc/hosts to the chroot environmentPetr Ospalý1-1/+2
This will change in a future commit to be little more flexible. As of now it fixes some usage when host system has defined some custom resolving which are needed. Change-Id: Ifea2ba087982006c0a399d1b225d7ab13f7e94da Issue-ID: OOM-1551 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2018-12-20Add the package.sh with a templatePetr Ospalý1-3/+3
It can be used to distribution of a project via tars. What is part of the package is defined in package.conf Issue-ID: OOM-1551 Change-Id: I8f5509bfb37d5cad510c0c151d49f6944fc6511c Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2018-12-20Update ansible nexus roleMichal Zegan2-1/+2
Looks like this one was a bit out of date, updating it... Change-Id: I7734fc5ccdba001d3c409244cd1625453ab232ed Issue-ID: OOM-1551 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2018-12-20Merge "Adding role for application handling"Tomáš Levora4-5/+49
2018-12-20Merge "Adding main README file"Tomáš Levora1-0/+280
2018-12-20Merge "Add ansible role for dns simulation"Michal Ptacek3-0/+53
2018-12-20Merge "Add ansible firewall role"Michal Ptacek2-0/+19
2018-12-19Adding role for application handlingMichal Ptacek4-5/+49
this ansible role contains application specific tasks, it is written in generic way and different helm charts can be used as application. In addition operator can provide proprietary pre_install and post_install hooks. Change-Id: Ibe4b330e5a725dde41aca9f6a59d702cfaba6f52 Issue-ID: OOM-1551 Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
2018-12-19Adding main README fileMichal Ptacek1-0/+280
main documentation for ansible offline installer Change-Id: I4e2cebf26a1720600dfed1a4b4c83a68a85426ed Issue-ID: OOM-1551 Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
2018-12-19Add ansible role for dns simulationTomáš Levora3-0/+53
Adding role to simulate domain names for offline installation from private nexus repositories Issue-ID: OOM-1551 Change-Id: Ia3fe274e95ef078332627af9229195bd6e9a667d Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2018-12-19Add ansible role for docker installationTomáš Levora2-0/+40
Adding ansible role for installation of docker and its setup Issue-ID: OOM-1551 Change-Id: I49bca8eab46a2750cd627cbf709bed6744c88df5 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2018-12-19Add ansible firewall roleTomáš Levora2-0/+19
Adding role to disable firewall to prevent any issue with communication during the installation Change-Id: I2390f0bc5062933e6a8bf4dcbc0b255b283f993d Issue-ID: OOM-1551 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2018-12-19Merge "Adding ansible helm role"Petr Ospalý1-0/+7
2018-12-19Merge "Adding ansible vncserver role"Petr Ospalý1-0/+19
2018-12-19Merge "Add resource-data handling role"Petr Ospalý3-0/+113
2018-12-19Merge "Add an ansible config to enable custom roles"Simon Hrabos1-0/+8
2018-12-19Merge "Add the playbook for unpacking the resources"Simon Hrabos1-0/+49
2018-12-19Merge "Add the infrastructure playbook to setup cluster"Simon Hrabos1-0/+71
2018-12-19Merge "Add the playbook for deploying the kubernetes"Simon Hrabos1-0/+31
2018-12-19Merge "Add application-install role"Simon Hrabos3-0/+40
2018-12-19Merge "Add the playbook for deploying the helm app"Simon Hrabos1-0/+23
2018-12-19Merge "Add the wrapper for running the ansible"Simon Hrabos1-0/+132
2018-12-19Merge "Add .gitignore to the ansible directory"Simon Hrabos1-0/+1
2018-12-19Merge "Add empty application directory with README"Simon Hrabos1-0/+58
2018-12-19Add the wrapper for running the ansiblePetr Ospalý1-0/+132
This script can run ansible playbook inside the docker container or (default) in the chroot environment. Change-Id: I713d6d76a4e20fc365a0ac7f47482004608354f6 Issue-ID: OOM-1551 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2018-12-19Add the playbook for deploying the helm appPetr Ospalý1-0/+23
The application specific stuff should be in the directory application - look at the README.md there Change-Id: I59d103246d0f54ea329a04d43479c4f31952b902 Issue-ID: OOM-1551 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2018-12-19Add application-install roleTomas Levora3-0/+40
This role adds helm install handling to ansible installer Change-Id: I31f62a815822f5375cc7e5b138bec27e359127b0 Issue-ID: OOM-1551 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2018-12-19Add the playbook for deploying the kubernetesPetr Ospalý1-0/+31
As the orchestration manager is used the rancher project Change-Id: I178bfc8edc7f381dd735e3b19ac34f3cf6efdf53 Issue-ID: OOM-1551 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2018-12-19Add the infrastructure playbook to setup clusterPetr Ospalý1-0/+71
It will make arrangements to make offline installation possible - especially: dns handling nexus repository package installation Issue-ID: OOM-1551 Change-Id: I3c60efd413f558454d63d4e79948bcc421f7bcd1 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2018-12-19Add the playbook for unpacking the resourcesPetr Ospalý1-0/+49
Change-Id: I2b0190dc25f341fafa3b1cbf978c764c675280d4 Issue-ID: OOM-1551 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2018-12-19Add the setup playbook for distributing ssh keysPetr Ospalý1-0/+26
Change-Id: I76773122de3d0b85a5bd772353614834df382c54 Issue-ID: OOM-1551 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2018-12-19Add an ansible config to enable custom rolesPetr Ospalý1-0/+8
Inside the application directory can be defined a custom application specific role Issue-ID: OOM-1551 Change-Id: Ic975a477fa33452f061a88c133a0e3edae747d94 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2018-12-19Add .gitignore to the ansible directoryPetr Ospalý1-0/+1
To avoid including the untarred chroot directory into git Issue-ID: OOM-1551 Change-Id: I4f760a2a5068a78fb5a05ebb1874544d55a2fc83 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2018-12-19Add empty application directory with READMEPetr Ospalý1-0/+58
Issue-ID: OOM-1551 Change-Id: I9bd50199d441bcc33d9a8019297950e556f378e4 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2018-12-19Merge "Add control variables for the ansible deploy"Michal Ptacek2-0/+165
2018-12-19Add the template for the hosts inventory filePetr Ospalý1-0/+32
Issue-ID: OOM-1551 Change-Id: I6ed8cae7fae5b482b5934d0e974434083714cf75 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>