Skip to content

Commit da9d6ff

Browse files
committed
Fixes #425: Update node.js forever app example to use rockylinux8.
1 parent b282c5d commit da9d6ff

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

nodejs-role/Vagrantfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
VAGRANTFILE_API_VERSION = "2"
55

66
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
7-
config.vm.box = "geerlingguy/centos7"
7+
config.vm.box = "geerlingguy/rockylinux8"
88
config.vm.network :private_network, ip: "192.168.55.56"
99
config.ssh.insert_key = false
1010
config.vm.synced_folder ".", "/vagrant", disabled: true

nodejs-role/playbook.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
pre_tasks:
88
- name: Import Remi GPG key.
99
rpm_key:
10-
key: "https://rpms.remirepo.net/RPM-GPG-KEY-remi"
10+
key: "https://rpms.remirepo.net/RPM-GPG-KEY-remi2018"
1111
state: present
1212

1313
- name: Install Remi repo.
1414
yum:
15-
name: "https://rpms.remirepo.net/enterprise/remi-release-7.rpm"
15+
name: "https://rpms.remirepo.net/enterprise/remi-release-8.rpm"
1616
state: present
1717

1818
- name: Install EPEL repo.
@@ -35,10 +35,10 @@
3535
npm: "path={{ node_apps_location }}/app"
3636

3737
- name: Check list of running Node.js apps.
38-
command: forever list
38+
command: /usr/local/bin/forever list
3939
register: forever_list
4040
changed_when: false
4141

4242
- name: Start example Node.js app.
43-
command: "forever start {{ node_apps_location }}/app/app.js"
43+
command: "/usr/local/bin/forever start {{ node_apps_location }}/app/app.js"
4444
when: "forever_list.stdout.find(node_apps_location + '/app/app.js') == -1"

nodejs/Vagrantfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
VAGRANTFILE_API_VERSION = "2"
55

66
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
7-
config.vm.box = "geerlingguy/centos7"
7+
config.vm.box = "geerlingguy/rockylinux8"
88
config.vm.hostname = "nodejs.test"
99
config.vm.network :private_network, ip: "192.168.55.55"
1010
config.ssh.insert_key = false

nodejs/provisioning/playbook.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
- name: Import Remi GPG key.
1313
rpm_key:
14-
key: "https://rpms.remirepo.net/RPM-GPG-KEY-remi"
14+
key: "https://rpms.remirepo.net/RPM-GPG-KEY-remi2018"
1515
state: present
1616

1717
- name: Install Remi repo.
1818
yum:
19-
name: "https://rpms.remirepo.net/enterprise/remi-release-7.rpm"
19+
name: "https://rpms.remirepo.net/enterprise/remi-release-8.rpm"
2020
state: present
2121

2222
- name: Ensure firewalld is stopped (since this is a test server).
@@ -38,10 +38,10 @@
3838
npm: "path={{ node_apps_location }}/app"
3939

4040
- name: Check list of running Node.js apps.
41-
command: forever list
41+
command: /usr/local/bin/forever list
4242
register: forever_list
4343
changed_when: false
4444

4545
- name: Start example Node.js app.
46-
command: "forever start {{ node_apps_location }}/app/app.js"
46+
command: "/usr/local/bin/forever start {{ node_apps_location }}/app/app.js"
4747
when: "forever_list.stdout.find(node_apps_location + '/app/app.js') == -1"

0 commit comments

Comments
 (0)