File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 4
4
VAGRANTFILE_API_VERSION = "2"
5
5
6
6
Vagrant . configure ( VAGRANTFILE_API_VERSION ) do |config |
7
- config . vm . box = "geerlingguy/centos7 "
7
+ config . vm . box = "geerlingguy/rockylinux8 "
8
8
config . vm . network :private_network , ip : "192.168.55.56"
9
9
config . ssh . insert_key = false
10
10
config . vm . synced_folder "." , "/vagrant" , disabled : true
Original file line number Diff line number Diff line change 7
7
pre_tasks :
8
8
- name : Import Remi GPG key.
9
9
rpm_key :
10
- key : " https://rpms.remirepo.net/RPM-GPG-KEY-remi "
10
+ key : " https://rpms.remirepo.net/RPM-GPG-KEY-remi2018 "
11
11
state : present
12
12
13
13
- name : Install Remi repo.
14
14
yum :
15
- name : " https://rpms.remirepo.net/enterprise/remi-release-7 .rpm"
15
+ name : " https://rpms.remirepo.net/enterprise/remi-release-8 .rpm"
16
16
state : present
17
17
18
18
- name : Install EPEL repo.
35
35
npm : " path={{ node_apps_location }}/app"
36
36
37
37
- name : Check list of running Node.js apps.
38
- command : forever list
38
+ command : /usr/local/bin/ forever list
39
39
register : forever_list
40
40
changed_when : false
41
41
42
42
- 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"
44
44
when : " forever_list.stdout.find(node_apps_location + '/app/app.js') == -1"
Original file line number Diff line number Diff line change 4
4
VAGRANTFILE_API_VERSION = "2"
5
5
6
6
Vagrant . configure ( VAGRANTFILE_API_VERSION ) do |config |
7
- config . vm . box = "geerlingguy/centos7 "
7
+ config . vm . box = "geerlingguy/rockylinux8 "
8
8
config . vm . hostname = "nodejs.test"
9
9
config . vm . network :private_network , ip : "192.168.55.55"
10
10
config . ssh . insert_key = false
Original file line number Diff line number Diff line change 11
11
12
12
- name : Import Remi GPG key.
13
13
rpm_key :
14
- key : " https://rpms.remirepo.net/RPM-GPG-KEY-remi "
14
+ key : " https://rpms.remirepo.net/RPM-GPG-KEY-remi2018 "
15
15
state : present
16
16
17
17
- name : Install Remi repo.
18
18
yum :
19
- name : " https://rpms.remirepo.net/enterprise/remi-release-7 .rpm"
19
+ name : " https://rpms.remirepo.net/enterprise/remi-release-8 .rpm"
20
20
state : present
21
21
22
22
- name : Ensure firewalld is stopped (since this is a test server).
38
38
npm : " path={{ node_apps_location }}/app"
39
39
40
40
- name : Check list of running Node.js apps.
41
- command : forever list
41
+ command : /usr/local/bin/ forever list
42
42
register : forever_list
43
43
changed_when : false
44
44
45
45
- 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"
47
47
when : " forever_list.stdout.find(node_apps_location + '/app/app.js') == -1"
You can’t perform that action at this time.
0 commit comments