infra/tools.git
3 years agoCreate packer template for Eiffel build servers 44/6144/1
Fatih Degirmenci [Fri, 2 Oct 2020 09:37:20 +0000 (09:37 +0000)]
Create packer template for Eiffel build servers

This change created packer template to use for instantiating build
nodes from OpenStack on Nordix Jenkins.

The major difference between the other/existing templates and this
one is the installation and configuration of podman. This is done
in order to utilize docker hub proxy setup on Nordix Harbor. The build
server is created using Ubuntu 20.04 in order to use fuse-overlayfs
and rootless podman.

README.md and configure-image-ubuntu2004.sh have more details.

Change-Id: I0e4f0e78f6e97f16f623519a94c21017a91177ce

3 years agoONAP jenkins build server image defintion for Nordix 75/5675/6
robert.tomczyk [Tue, 11 Aug 2020 12:18:11 +0000 (13:18 +0100)]
ONAP jenkins build server image defintion for Nordix

This image file for ONAP conatains:
- Multiple Java versions: JDK8, JDK11 and JDK12
- Latest docker distribution
- Default jenkins user set up

Change-Id: I6a44128b213e0cc18866637949cbc9988ffd97e1

3 years agoSwitch to packer for configuring cloud infra nodes 52/5652/3
Fatih Degirmenci [Fri, 7 Aug 2020 08:16:15 +0000 (08:16 +0000)]
Switch to packer for configuring cloud infra nodes

This change switches to packer for building openstack image to be
used by cloud infra nodes on jenkins. It is based on existing script
to setup openstack instances manually and uds packer. [0][1]

In addition to basic configuration, the committed authorized_keys
file can be used for adding user ssh public keys to get them added
into /home/jenkins/.ssh/authorized_keys file via cloud-init script
when the instance boots.

[0] https://gerrit.nordix.org/gitweb?p=infra/tools.git;a=blob;f=infra/jenkins/slave-setup/vm-slave/cloud-infra-slave-setup.sh
[1] https://gerrit.nordix.org/gitweb?p=infra/tools.git;a=tree;f=infra/jenkins/slave-setup/uds-build-server

Change-Id: Ie1932d7098d7c6a0c52206dce785f34076d30881

3 years agoCreate cloud-init script as part of image build 39/5339/3
Fatih Degirmenci [Thu, 9 Jul 2020 11:03:26 +0000 (11:03 +0000)]
Create cloud-init script as part of image build

We need the ssh public key for jenkins user placed into
/home/jenkins/.ssh/authorized_keys in order for jenkins
to be able to connect the slaves provisioned using openstack
plugin using jenkins user.

This change updates packer file with creation of cloud-init
script.

Change-Id: I91610c71a6250102e9a11a4140fa784bd9f5ee9d

3 years agoJenkins user and ssh config added 31/5331/1
matthew-mcneilly [Wed, 8 Jul 2020 17:18:49 +0000 (18:18 +0100)]
Jenkins user and ssh config added

Addition of Jenkins user
Disable ssh via password
Enalbe ssh via tokens
Disable env_reset requiretty
Add passwordless sudo

Signed-off-by: matthew-mcneilly <matthew.mcneilly@est.tech>
Change-Id: I2740677c1338ebdca92f41858088135c20b90774

3 years agoUDS build server packer files 95/5295/2
matthew-mcneilly [Mon, 6 Jul 2020 16:12:48 +0000 (17:12 +0100)]
UDS build server packer files

Signed-off-by: matthew-mcneilly <matthew.mcneilly@est.tech>
Change-Id: Ib573b0b9de313fa7662711016e0b7d2a9970d772

4 years agoUpdate docker slave for ONAP report generation 42/4942/2
Fatih Degirmenci [Thu, 28 May 2020 11:53:40 +0000 (11:53 +0000)]
Update docker slave for ONAP report generation

Change-Id: I1b97cc569276dc214c273ab93a5bb5bb40a585d1

4 years agoEnsure we can install python3.6 in docker slave 64/3464/1
Fatih Degirmenci [Tue, 21 Jan 2020 16:10:34 +0000 (17:10 +0100)]
Ensure we can install python3.6 in docker slave

Change-Id: Iecac3cb90c703e038dd0e9fed5ad642476069067

4 years agoCreate Dockerfile to build Jenkins Docker Slaves 40/3340/1
Fatih Degirmenci [Fri, 10 Jan 2020 17:02:49 +0000 (17:02 +0000)]
Create Dockerfile to build Jenkins Docker Slaves

This Dockerfile is used for building container images to
use as Jenkins Slaves for Nordix Infra. The image is configured
and tested for running
  - Jenkins Job Builder Verify and Merge jobs using tox
  - Cloud Infra Engine ansible-lint, yamllist, and shellcheck using tox

The image built using this Dockerfile is currently being stored on Docker Hub
with the name nordixorg/infra-tools-docker-slave-ubuntu1804 which can be seen
using the link below.
  https://hub.docker.com/repository/docker/nordixorg/infra-tools-docker-slave-ubuntu1804
The images are automatically attached to Jenkins as slaves using Jenkins
Docker plugin with a name that looks like infra-ubuntu1804-<random_characters>

In order to use this image as slave for your jobs, you need to use label
infra-tools-docker-slave-ubuntu1804 so Jenkins schedules your job on this slave
which gets provisioned by Jenkins Docker plugin. Please note that it takes few
seconds before the slave becomes ready and job starts running.

Change-Id: I13c03bb9c76fedaf0222376d35f84a67a4266662

4 years agoCreate script to configure base instances for cloud infra 36/2736/8
Fatih Degirmenci [Fri, 25 Oct 2019 12:21:04 +0000 (12:21 +0000)]
Create script to configure base instances for cloud infra

This script configures instances used as slaves on Jenkins  for
cloud infra jobs. It simply automates what is documented on below
page to make our life easier. Centos support is also introduced.

https: //wiki.nordix.org/display/IN/Jenkins+Slave+Setup#JenkinsSlaveSetup-vPODSetup

Change-Id: Ie1f01ccb7d44a974953f4d8ec2a000d8abbcad31

4 years agoMove ONAP tools under onap folder 35/2735/1
Fatih Degirmenci [Fri, 25 Oct 2019 12:20:47 +0000 (12:20 +0000)]
Move ONAP tools under onap folder

Change-Id: I7ce8ea12fef73402a39ed91211a99d4ab42ea1a0

5 years agoFix error message on script 99/1499/1
liamfallon [Thu, 27 Jun 2019 09:50:43 +0000 (10:50 +0100)]
Fix error message on script

Change-Id: Ie9c4863e4d44ffa9232025ca76d6530a6951c90b

5 years agoMerge "Correct install check files"
Liam Fallon [Tue, 25 Jun 2019 05:59:09 +0000 (05:59 +0000)]
Merge "Correct install check files"

5 years agoINFRA: Add new gerrit remote after repo is clone 92/1392/2
robert.tomczyk [Tue, 11 Jun 2019 15:02:26 +0000 (16:02 +0100)]
INFRA: Add new gerrit remote after repo is clone

The gerrit remote have to be added after repo is cloned
to make sure git review have a correct project path
for ONAP repositories on Nordix.

Change-Id: Ie5d1f1d0bf0d2b1902f87c95135084c63e7c748b

5 years agoCorrect install check files 10/1210/1
liamfallon [Wed, 15 May 2019 13:14:10 +0000 (14:14 +0100)]
Correct install check files

The virus definitions can be in daily.cld or daily.cvd, the
script is updated to reflect that

Change-Id: I6c5bbda2e25544d0e78c7e0fca6d92c55486072e
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoCorrected file required within if statement, to .cvd 01/1201/2
Eoin Hanan [Wed, 15 May 2019 08:34:48 +0000 (09:34 +0100)]
Corrected file required within if statement, to .cvd

Change-Id: Iabd4a0d601a48d03d06953108fab7f450a38e7eb
Signed-off-by: Eoin Hanan <eoin.hanan@est.tech>
5 years agoAdd install script for clamav scans 82/1182/5
liamfallon [Mon, 13 May 2019 10:22:01 +0000 (11:22 +0100)]
Add install script for clamav scans

Change-Id: I5f3039e4eacdc4eaa2f5c0d60f8be8498e5bbe60
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoRemove redundant scripts 64/1164/1
liamfallon [Thu, 9 May 2019 11:20:00 +0000 (12:20 +0100)]
Remove redundant scripts

These two scripts are functionally replaced by "git review".

The cloning script is kept becasue it sets up the gerrit repos
and the signature of the user.

Change-Id: I2e87fa813e94da857b7304367859dd09c7a4c371
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoEnable git review on tools repo 26/1126/1
liamfallon [Tue, 7 May 2019 15:20:53 +0000 (16:20 +0100)]
Enable git review on tools repo

Change-Id: I2807ba0505c826f0dab6ccb14fd59a0f2985f72d
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoclamav daily scan 85/285/3
Liam Fallon [Fri, 25 Jan 2019 15:51:15 +0000 (15:51 +0000)]
clamav daily scan

This review introduces two files for carrying out daily scans
using clamav. The first scan does a full svan, following that,
incremental scans are done.

Change-Id: I4af6be559954cde38fca091fbe7dd8c4f55e2b33
Signed-off-by: Liam Fallon <liam.fallon@est.tech>
5 years agoReplace alias co with checkout in script 53/253/2
Liam Fallon [Thu, 17 Jan 2019 17:30:07 +0000 (17:30 +0000)]
Replace alias co with checkout in script

Change-Id: I70e8396f048e8a40dac12cf6207e6817c38133b0
Signed-off-by: Liam Fallon <liam.fallon@est.tech>
5 years agoMerge "Update scripts to work on Nordix Master"
Liam Fallon [Wed, 16 Jan 2019 16:11:35 +0000 (16:11 +0000)]
Merge "Update scripts to work on Nordix Master"

5 years agoUpdate scripts to work on Nordix Master 20/220/2
liamfallon [Thu, 20 Dec 2018 13:30:53 +0000 (13:30 +0000)]
Update scripts to work on Nordix Master

The upstreaming process has been updated to work towards the Nordix
master in order to avoid merge conflicts when multiple
versions of reviews are updated.

Change-Id: I77e83fbf2696ad146516962b3a89ad3a6e49d1f2
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoAdd script with commands to create ONAP in single VM 23/223/1
afenner [Fri, 21 Dec 2018 12:06:36 +0000 (12:06 +0000)]
Add script with commands to create ONAP in single VM
Change-Id: Ieccdad5ef61063c1fad88c2989edf3ce9d69daca
Signed-off-by: andrew.fenner <andrew.fenner@est.tech>
5 years agoMerge "Merge branch 'master' of ssh://gerrit.nordix.org:29418/infra/tools"
Liam Fallon [Thu, 20 Dec 2018 13:37:46 +0000 (13:37 +0000)]
Merge "Merge branch 'master' of ssh://gerrit.nordix.org:29418/infra/tools"

5 years agoMerge "Merge branch 'master' of ssh://gerrit.nordix.org:29418/infra/tools"
Liam Fallon [Thu, 20 Dec 2018 13:36:55 +0000 (13:36 +0000)]
Merge "Merge branch 'master' of ssh://gerrit.nordix.org:29418/infra/tools"

5 years agoMerge branch 'master' of ssh://gerrit.nordix.org:29418/infra/tools 19/219/1
liamfallon [Wed, 19 Dec 2018 12:46:44 +0000 (12:46 +0000)]
Merge branch 'master' of ssh://gerrit.nordix.org:29418/infra/tools

Change-Id: Iece5d4c31e6796b999409b934d01bf026eace5a2

5 years agoMerge "Add licenses for ONAP contributions from Nordix"
Liam Fallon [Mon, 10 Dec 2018 22:04:19 +0000 (22:04 +0000)]
Merge "Add licenses for ONAP contributions from Nordix"

5 years agoMerge branch 'master' of ssh://gerrit.nordix.org:29418/infra/tools 18/218/1
liamfallon [Wed, 5 Dec 2018 13:41:41 +0000 (13:41 +0000)]
Merge branch 'master' of ssh://gerrit.nordix.org:29418/infra/tools

Change-Id: I5969304ef381009628b27643b630619071a2b276

5 years agoAdd licenses for ONAP contributions from Nordix 70/170/6
liamfallon [Tue, 27 Nov 2018 12:29:02 +0000 (12:29 +0000)]
Add licenses for ONAP contributions from Nordix

Change-Id: Icc704250e23392e6ef146ad33fb4d0ea99d62daf
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoAdd scripts for managing reviews for ONAP 68/168/5
liamfallon [Mon, 26 Nov 2018 14:19:09 +0000 (14:19 +0000)]
Add scripts for managing reviews for ONAP

Change-Id: Ieccdad5ef61063c1fad88c2989edf3ce9d69dacf
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoInitial empty repository
Fatih Degirmenci [Mon, 26 Nov 2018 14:12:30 +0000 (14:12 +0000)]
Initial empty repository