AWX uses separate ssh keys to access the host. The host itself uses
its own ssh keys to access bitbucket. The added section shows a way
how to handle such a condition.
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
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>
The created server for the conceptional work of the CoreOS CI is
currently available but not much used. Thus, I switched the host
of the inventory to this server. With it it should be possible to
clone a repository, build and launch a docker image.
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
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>
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>
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>
the topic about using the Git server (Bitbucket or GitLab) for
user-space applications has driven me into that direction.
Unfortunately there is a lack of information and permission to
move on with this topic. Thus, I postponed it until I get some
news :-)
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
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>
Documented the job template to get the information residing in
the playbook getting_started/os-rls.yml
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
this commit holds the information about how to synchronize a git
project containing ansible playbooks and hosts with AWX.
NOTE: getting the hosts of the inventroy file is not that obvious,
hence it is worth to read it.
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
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>
The latest version of AWX requires a Kubernetes Cluster. This
commit holds the update of the page and shows both installation
methodes (directly with docker and the latest version with a
minikube).
Additionally, I added a new section setting up a virtual machine
for test purpose. With it another section for accessing such
machines over SSH.
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
Documented the setup of an AWX instance using docker-compose.
Added a first playbook including inventory
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
the nightly timer triggers the job without target parameter. Thus,
the job checks if it is a nightly build and takes a default target
which is the clearfog one.
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
In a nightly build the job parameter TARGET stays on "selected...".
Thus, a check verifies if the job is triggered by a timer and then
takes the default target which is the first one in the file
'nwlTargets'.
With it the description name of the build gets a postfix 'nightly'.
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
with the current Merge Request there are now 2 images for the NWL.
One is specially for the CI.
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
need to clone the repository to load the list of the buid
targets in pre-node step.
added a git credential ID getter to clone repositories.
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>