summaryrefslogtreecommitdiffstats
path: root/ansible
AgeCommit message (Collapse)AuthorFilesLines
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>
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>
2018-12-19Add control variables for the ansible deployPetr Ospalý2-0/+165
all.yml should be set or redefined per application infrastructure.yml should be modified only with a care Issue-ID: OOM-1551 Change-Id: I05dd6b83d980101214881420e3825949e75afc73 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2018-12-19Merge "Adding nginx role"Michal Ptacek2-0/+142
2018-12-19Merge "Add nexus ansible role"Michal Ptacek8-0/+136
2018-12-19Add ansible library for creating the k8n env.Petr Ospalý1-0/+341
Issue-ID: OOM-1551 Change-Id: I485f58e560086345bd27a4a7f94d2651a0cd357e Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2018-12-19Merge "Adding rancher role"Tomáš Levora4-0/+85
2018-12-19Add ansible library to modify jsonPetr Ospalý1-0/+90
Issue-ID: OOM-1551 Change-Id: I791bf7163a023ddc140cee22d474fcf532beae17 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2018-12-19Merge "Add a wrapper script to run ansible in chroot"Tomáš Levora1-0/+465
2018-12-19Merge "Add .gitignore to docker directory"Petr Ospalý1-0/+3
2018-12-19Add a wrapper script to run ansible in chrootPetr Ospalý1-0/+465
Script uses namespaces and overlayfs to be more robust. Also it supports bind mounting to extend the chroot with external files and directories. Issue-ID: OOM-1551 Change-Id: I8c554e1b86fca86f86e6c0d0e1b106c97a08ef15 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2018-12-19Adding nginx roleMichal Ptacek2-0/+142
nginx is crucial part of our offline solution, within this role we are covering deployment of this lightweight http server together with its configuration. Change-Id: I89695074349f4c6938340ab3bb735108c8c278f4 Issue-ID: OOM-1551 Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
2018-12-19Adding rancher roleMichal Ptacek4-0/+85
In kubernetes cluster configuration we still use rancher tool, this ansible role is providing handling for both rancher server and agent. Change-Id: I508a42a98902788b940b06cf95009a899c50a3b8 Issue-ID: OOM-1551 Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
2018-12-19Add a script to convert the docker into chrootPetr Ospalý1-0/+220
The docker image will be exported into a tar archive containing the chroot directory Issue-ID: OOM-1551 Change-Id: I8709ffd59156243e42bebbaf03838120149d47b0 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2018-12-19Add .gitignore to docker directoryPetr Ospalý1-0/+3
To avoid including the created image in the git by accident Issue-ID: OOM-1551 Change-Id: I7144a063ed45ee8511912adb2aa1024965d452d0 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2018-12-19Add resource-data handling roleMichal Ptacek3-0/+113
In this role we mostly cover uploading of data resource using either default ssh way or if nfs server is configured it can be used as well for distributing data to infra node. Change-Id: I4784c6ca931b00c1033aedb33e388badfba83650 Issue-ID: OOM-1551 Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>