Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
"type": "ec2",
"size": "t3.small",
"comment": "This AMI requires to accept terms and conditions https://aws.amazon.com/marketplace/server/procurement?productId=0f258a51-0979-4be2-a6a9-ec8fe108514a",
"ami_name": "debian-10-amd64-202?????-*",
"ami_name": "debian-13-amd64-202?????-*",
"user_name": "admin"
}],

"services": [{
"id": "aspnetcore",
"destinations": ["debiannginxnetcore1"],
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/linux/dotNet/install/ubuntu20/roles",
"deploy_script_path": "test/deploy/linux/dotNet/install/debian13/roles",
"port": 9999
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
"provider": "aws",
"type": "ec2",
"size": "t3.micro",
"ami_name": "ubuntu-pro-server/images/hvm-ssd/ubuntu-focal-20.04-amd64-pro-server-????????",
"ami_name": "ubuntu/images/hvm-ssd-gp3/ubuntu-noble-24.04-amd64-server-202?????",
"user_name": "ubuntu"
}],

"services": [{
"id": "aspnetcore",
"destinations": ["ubuntuapachenetcore1"],
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/linux/dotNet/install/ubuntu20/roles",
"deploy_script_path": "test/deploy/linux/dotNet/install/ubuntu24/roles",
"port": 9999
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@
},

"resources": [{
"id": "iiswindows2019",
"id": "iiswindows2022",
"provider": "aws",
"type": "ec2",
"size": "t3.small",
"is_windows": true,
"ami_name": "Windows_Server-2019-English-Full-HyperV-*",
"ami_name": "Windows_Server-2022-English-Full-Base-*",
"user_name": "Administrator"
}],

"services": [{
"id": "iis",
"destinations": ["iiswindows2019"],
"destinations": ["iiswindows2022"],
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/windows/iis/install/roles",
"port": 9999
},
{
"id": "coreapp",
"destinations": ["iiswindows2019"],
"destinations": ["iiswindows2022"],
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/windows/iis/deploy-webapplication/roles",
"port": 8083,
Expand All @@ -38,7 +38,7 @@
"resources": [
{
"id": "nr_infra",
"resource_ids": ["iiswindows2019"],
"resource_ids": ["iiswindows2022"],
"provider": "newrelic",
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/windows/newrelic-cli/install/roles",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,36 +7,36 @@
},

"resources": [{
"id": "iiswindows2019",
"id": "iiswindows2025",
"provider": "aws",
"type": "ec2",
"size": "t3.small",
"is_windows": true,
"ami_name": "Windows_Server-2019-English-Full-HyperV-*",
"ami_name": "Windows_Server-2025-English-Full-Base-*",
"user_name": "Administrator"
}],

"services": [{
"id": "iis",
"destinations": ["iiswindows2019"],
"destinations": ["iiswindows2025"],
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/windows/iis/install/roles",
"port": 9999
},{
"id": "webapp1",
"destinations": ["iiswindows2019"],
"destinations": ["iiswindows2025"],
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/windows/iis/deploy-webapplication/roles",
"port": 8081
},{
"id": "webapp2",
"destinations": ["iiswindows2019"],
"destinations": ["iiswindows2025"],
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/windows/iis/deploy-webapplication/roles",
"port": 8082
},{
"id": "webapp3",
"destinations": ["iiswindows2019"],
"destinations": ["iiswindows2025"],
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/windows/iis/deploy-webapplication/roles",
"port": 8083,
Expand All @@ -49,7 +49,7 @@
"resources": [
{
"id": "nr_infra",
"resource_ids": ["iiswindows2019"],
"resource_ids": ["iiswindows2025"],
"provider": "newrelic",
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/windows/newrelic-cli/install-recipe/roles",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
- debug:
msg: Install ASP.NET Core 10 Runtime

# - name: Get package name
# shell: cat /etc/os-release | grep "PRETTY_NAME=\"" | awk -F = '{print $2}' | awk -F " " '{print $1}' | sed 's/["]//g'
# register: package_name

# - name: Get package version
# shell: cat /etc/os-release | grep "VERSION_ID=\"" | awk -F = '{print $2}' | awk -F " " '{print $1}' | sed 's/["]//g'
# register: package_version

# - name:
# set_fact:
# package_url: "https://packages.microsoft.com/config/{{package_name.stdout | lower }}/{{package_version.stdout | lower }}/packages-microsoft-prod.deb"

# - debug:
# msg: "Using download URL of {{package_url}}"

# - name: Download Microsoft package signing key and add Microsoft package repository
# shell: |
# wget "{{package_url}}" -O packages-microsoft-prod.deb
# dpkg -i packages-microsoft-prod.deb
# become: true

- name: Install dependencies
shell: |
apt update
apt install -y wget libicu76
become: true

- name: Install ASP.NET Core 10 Runtime
shell: |
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
chmod +x dotnet-install.sh
./dotnet-install.sh --runtime aspnetcore --version 10.0.0
become: true
21 changes: 11 additions & 10 deletions test/deploy/linux/dotNet/install/rhel/roles/prepare/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@
- debug:
msg: Install .NET

# https://learn.microsoft.com/en-us/dotnet/core/install/linux-centos#centos-linux-7
# https://learn.microsoft.com/en-us/dotnet/core/install/linux-rhel#centos-stream-10
# Per the article above, ".NET is included in the AppStream repositories for CentOS Stream 10."

- name: Install Centos 7 RPM
ansible.builtin.yum:
name: https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
state: present
lock_timeout: 180
become: true
# - name: Install Centos Stream 10 RPM
# ansible.builtin.yum:
# name: https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
# state: present
# lock_timeout: 180
# become: true

- name: Install .NET SDK 7.0 and ASP.NET Core 7.0 runtime
- name: Install .NET 10 SDK and ASP.NET Core Runtime
ansible.builtin.yum:
name:
- dotnet-sdk-7.0
- aspnetcore-runtime-7.0
- dotnet-sdk-10.0
- aspnetcore-runtime-10.0 #I think this is redundant since sdk includes runtime
state: latest
lock_timeout: 180
become: true
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- debug:
msg: Install ASP.NET Core 5.0 Runtime
msg: Install ASP.NET Core 10 Runtime

- name: Get package name
shell: cat /etc/os-release | grep "PRETTY_NAME=\"" | awk -F = '{print $2}' | awk -F " " '{print $1}' | sed 's/["]//g'
Expand All @@ -27,9 +27,9 @@
shell: apt update
become: true

- name: Install ASP.NET Core 5.0 Runtime
- name: Install ASP.NET Core 10 Runtime
shell: |
apt install apt-transport-https -y
apt update
apt install aspnetcore-runtime-5.0 -y
apt install aspnetcore-runtime-10.0 -y
become: true
Loading