Commit Graph

33 Commits

Author SHA1 Message Date
Marc Mattmüller 51a81ac791 playbooks/setup-nwl-jenkins: fixed workdir path for secrets
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-11 17:09:30 +02:00
Marc Mattmüller 9c870c9e29 playbooks/setup-nwl-jenkins: added bash root path for key setup
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-11 16:30:09 +02:00
Marc Mattmüller c6bd0ca952 playbooks/setup-nwl-jenkins: adapt command to import rootCA
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-11 16:04:17 +02:00
Marc Mattmüller ba1a480537 docker,playbooks: moved getting root CA into playbook
there is an issue with curl getting the Belden root cert, thus the
setup was completely moved to the playbook.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-11 15:34:24 +02:00
Marc Mattmüller 94aa68c0d6 docker, playbooks: adaption for integrating root CA
The initial start is now moved to the playbook setting NWL jenkins
up. Thus the start/stop playbook does no longer need the initial
parameter as variable.
With it the NWL jenkins docker image was versionized to 0.0.3 and
the jenkins version was updated to the latest version.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-11 15:15:43 +02:00
Marc Mattmüller 9725d7a7ac playbooks: added playbook to setup git url of seed job
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-07 15:45:21 +02:00
Marc Mattmüller 30d93d5e48 docker,playbook: refactored jenkins instance after integration
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-06-26 12:54:12 +02:00
Marc Mattmüller 2962890ed3 playbooks/startStopNwlJenkins: added snippet to wait until successful start-up
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-06-21 12:24:07 +02:00
Marc Mattmüller 205eea5425 playbooks: added start/stop NWL jenkins
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-06-21 11:28:28 +02:00
Marc Mattmüller 99bb204bd3 playbooks/setupNwlJenkins: removed the debug messages
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-06-21 10:39:50 +02:00
Marc Mattmüller 439a894fef playbooks: added setup-nwl-jenkins playbook
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-06-20 23:22:50 +02:00
Marc Mattmüller 72a8b96ea0 playbook/build-docker: do not gather facts and register build of docker
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-06-13 13:34:01 +02:00
Marc Mattmüller b25d6f32d3 playbook/build-docker: using shell as the docker module is not available
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-06-13 13:20:51 +02:00
Marc Mattmüller 29e807db1b playbook,docker: added playbook to build a docker image
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-06-13 13:00:44 +02:00
Marc Mattmüller 35e28eb1a3 playbooks/clone-repo: added condition when repo is already cloned
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-06-13 12:37:48 +02:00
Marc Mattmüller 8b56069a38 playbooks/clone-repo: refactored the playbook
removed the logs to increase the security

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-06-13 11:30:00 +02:00
Marc Mattmüller 15732a2cf7 playbooks/clone-repo: fixed repo url (forgotten during refactoring)
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-06-13 11:14:09 +02:00
Marc Mattmüller 14b51efb5d playbooks/clone-repo: 1 task for cloning, checking out and updating
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-06-13 10:58:33 +02:00
Marc Mattmüller 0b66f54f97 playbooks/clone-repo: changed creating auto ssh add file and its path
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-06-13 10:50:47 +02:00
Marc Mattmüller fcceaca96e playbooks/clone-repo: make auto ssh add file executable
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-06-13 10:43:05 +02:00
Marc Mattmüller 2438809884 playbooks/clone-repo: using shell commands to clone repo
by using shell commands we have more flexibility to clone the repo
using specific ssh keys.
Additionally we provide the passphrase for the ssh key using the
AXW vault.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-06-13 10:33:20 +02:00
Marc Mattmüller 4d9f64f3dc playbooks/clone-repo: replaces ip with name of bitbucket
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-06-13 08:06:49 +02:00
Marc Mattmüller 3216c8d0f6 inventory,playbook/conf-docker-net: changed the VM ip and used sudo
the IP of my VM is adapted due to my smartphone acting as gateway
and DHCP server. Thus I made the work easier and change the IP in
the inventory.
For the docker network reconfiguration I used sudo so that we can
use the priviledged mode

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-06-12 12:00:23 +02:00
Marc Mattmüller 3027f8e284 playbooks: added configure docker network playbook first version
per default docker uses IP 172.17.0.0/16 which conflicts with the
test network at NetModule. Hence, we reconfigure it to
192.168.5.1/24

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-06-06 16:27:21 +02:00
Marc Mattmüller f691f5206c playbooks;inventory: added variable to production.yaml and added create-ssh-key playbook
The production inventory got a new variable called host_name which we use in the
newly added playbook creating an SSH key.
The playbook holds the no_log tag for keeping the execution parts more secure.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-06-06 13:48:22 +02:00
Marc Mattmüller 565493b9de playbook/clone-repo: replaced bitbucket name with ip
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-05-22 16:09:42 +02:00
Marc Mattmüller 8837554aba playbooks/clone-repo: removed prompting but added std output
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-05-22 11:06:50 +02:00
Marc Mattmüller bce9b6c45f playbooks/clone-repo: fixed indentation
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-05-22 10:59:28 +02:00
Marc Mattmüller 470a77f787 playbooks/clone-repo: added missing syntax element for prompting
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-05-22 10:53:34 +02:00
Marc Mattmüller 850396ebc3 playbooks: added playbook to clone a repository
the repository url shall be prompted to keep it more flexible.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-05-22 10:38:11 +02:00
Marc Mattmüller c37bd6f380 playbooks,inventory: added playbook installing basic tools on a VM
As soon as a virtual machine is ready, we install docker as it gives
the most flexbility for our CI and the docker images are versionized.
Hence, we install docker as main installation package.
We assume that the VM holds the following users:
- root
- superuser (added to sudoers)
- user

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-05-15 18:18:19 +02:00
Marc Mattmüller 6a824507ed ansible.cfg,os-rls.yml: added configuration for files and fixed var
fixed variable in playbook os-rls.yml and added config file for
the ansible file paths.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-05-09 15:19:43 +02:00
Marc Mattmüller 118b75408d inventroy,playbooks: arranged files in subdirectories
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-05-09 12:02:29 +02:00