mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Merge pull request #2606 from holta/nodejs-14.x
Node.js 12 -> 14 LTS for Node-RED, Sugarizer and Internet Archive
This commit is contained in:
		
						commit
						05b61e8672
					
				
					 3 changed files with 9 additions and 8 deletions
				
			
		| 
						 | 
					@ -9,10 +9,10 @@
 | 
				
			||||||
  include_role:
 | 
					  include_role:
 | 
				
			||||||
    name: nodejs
 | 
					    name: nodejs
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: FAIL (STOP INSTALLING) IF nodejs_version is not set to 10.x or 12.x
 | 
					- name: FAIL (STOP INSTALLING) IF nodejs_version is not set to 10.x, 12.x or 14.x
 | 
				
			||||||
  fail:
 | 
					  fail:
 | 
				
			||||||
    msg: "Internet Archive install cannot proceed, as it currently requires Node.js 10.x or 12.x, and your nodejs_version is set to {{ nodejs_version }}.  Please check the value of nodejs_version in /opt/iiab/iiab/vars/default_vars.yml and possibly also /etc/iiab/local_vars.yml"
 | 
					    msg: "Internet Archive install cannot proceed, as it currently requires Node.js 10.x or 12.x or 14.x, and your nodejs_version is set to {{ nodejs_version }}.  Please check the value of nodejs_version in /opt/iiab/iiab/vars/default_vars.yml and possibly also /etc/iiab/local_vars.yml"
 | 
				
			||||||
  when: (nodejs_version != "10.x") and (nodejs_version != "12.x")
 | 
					  when: (nodejs_version != "10.x") and (nodejs_version != "12.x") and (nodejs_version != "14.x")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'yarn_install: True' and 'yarn_enabled: True'"
 | 
					- name: "Set 'yarn_install: True' and 'yarn_enabled: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -26,10 +26,11 @@
 | 
				
			||||||
    msg: "Node-RED install cannot proceed, as Node.js is not installed."
 | 
					    msg: "Node-RED install cannot proceed, as Node.js is not installed."
 | 
				
			||||||
  when: nodejs_installed is undefined
 | 
					  when: nodejs_installed is undefined
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: FAIL (STOP THE INSTALL) IF 'nodejs_version != "12.x"'
 | 
					# 2020-10-29: not really be nec as Node-RED supports recent Node.js versions
 | 
				
			||||||
  fail:
 | 
					#- name: FAIL (STOP THE INSTALL) IF 'nodejs_version != "12.x"'
 | 
				
			||||||
    msg: "Node-RED install cannot proceed, as it currently requires Node.js 12.x, whereas nodejs_version is set to {{ nodejs_version }}.  Please check the value of nodejs_version in /opt/iiab/iiab/vars/default_vars.yml, /etc/iiab/local_vars.yml, /opt/iiab/iiab/roles/nodejs, etc."
 | 
					#  fail:
 | 
				
			||||||
  when: nodejs_version != "12.x"
 | 
					#    msg: "Node-RED install cannot proceed, as it currently requires Node.js 12.x, whereas nodejs_version is set to {{ nodejs_version }}.  Please check the value of nodejs_version in /opt/iiab/iiab/vars/default_vars.yml, /etc/iiab/local_vars.yml, /opt/iiab/iiab/roles/nodejs, etc."
 | 
				
			||||||
 | 
					#  when: nodejs_version != "12.x"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# BRUTAL but ensures consistency across OS's / distros like Raspbian Desktop &
 | 
					# BRUTAL but ensures consistency across OS's / distros like Raspbian Desktop &
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -395,7 +395,7 @@ nodejs_install: False
 | 
				
			||||||
nodejs_enabled: False
 | 
					nodejs_enabled: False
 | 
				
			||||||
# Node.js version used by roles/nodejs/tasks/main.yml for 3 roles:
 | 
					# Node.js version used by roles/nodejs/tasks/main.yml for 3 roles:
 | 
				
			||||||
# nodered (Node-RED), pbx (Asterix, FreePBX) & sugarizer (Sugarizer)
 | 
					# nodered (Node-RED), pbx (Asterix, FreePBX) & sugarizer (Sugarizer)
 | 
				
			||||||
nodejs_version: 12.x    # was 8.x until 2019-02-02, was 10.x until 2019-12-21
 | 
					nodejs_version: 14.x    # was 8.x til 2019-02-02, 10.x til 2019-12-21, 12.x til 2020-10-29
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Flow-based visual programming for wiring together IoT hardware devices etc
 | 
					# Flow-based visual programming for wiring together IoT hardware devices etc
 | 
				
			||||||
nodered_install: False
 | 
					nodered_install: False
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue