diff --git a/test/definitions/otel/rhel/centos7-otel.json b/test/definitions/otel/rhel/centos7-otel.json index 1ded5aabf..4aa2c0cca 100644 --- a/test/definitions/otel/rhel/centos7-otel.json +++ b/test/definitions/otel/rhel/centos7-otel.json @@ -10,11 +10,23 @@ "id": "host1", "provider": "aws", "type": "ec2", - "size": "t3.nano", - "ami_name": "CentOS-7-????-????????_?.x86_64-*", - "user_name": "centos" + "size": "t3.medium", + "ami_name": "brightheadnode-9.1-centos7u8-hvm-3", + "user_name": "root" }], + "services": [ + { + "id": "centos", + "destinations": [ + "host1" + ], + "source_repository": "-b fix/non-regression-tests-us https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/otel/install/centos/roles", + "port": 9999 + } + ], + "instrumentations": { "resources": [ { diff --git a/test/definitions/otel/rhel/centos8-otel.json b/test/definitions/otel/rhel/centos8-otel.json index e353e46b1..ef79b9afa 100644 --- a/test/definitions/otel/rhel/centos8-otel.json +++ b/test/definitions/otel/rhel/centos8-otel.json @@ -10,11 +10,23 @@ "id": "host1", "provider": "aws", "type": "ec2", - "size": "t3.nano", - "ami_name": "CentOS Stream 8 x86_64 ????????", - "user_name": "centos" + "size": "t2.medium", + "ami_name": "brightheadnode-9.1-centos8u2-hvm-4", + "user_name": "root" }], + "services": [ + { + "id": "centos", + "destinations": [ + "host1" + ], + "source_repository": "-b fix/non-regression-tests-us https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/otel/install/centos/roles", + "port": 9999 + } + ], + "instrumentations": { "resources": [ { diff --git a/test/deploy/linux/otel/install/centos/roles/prepare/tasks/main.yml b/test/deploy/linux/otel/install/centos/roles/prepare/tasks/main.yml new file mode 100644 index 000000000..8e6946b44 --- /dev/null +++ b/test/deploy/linux/otel/install/centos/roles/prepare/tasks/main.yml @@ -0,0 +1,14 @@ +--- +- debug: + msg: Update CentOS + +- name: Change directory to /etc/yum.repos.d/ + shell: cd /etc/yum.repos.d/ + +- name: Disable mirrorlist in CentOS repo files + shell: sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* + +- name: Update baseurl to vault.centos.org in CentOS repo files + shell: sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* + +