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 44VAGRANTFILE_API_VERSION = "2"
55
66Vagrant . 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
Original file line number Diff line number Diff line change 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.
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"
Original file line number Diff line number Diff line change 44VAGRANTFILE_API_VERSION = "2"
55
66Vagrant . 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
Original file line number Diff line number Diff line change 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).
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"
You can’t perform that action at this time.
0 commit comments