forked from ungleich-public/cdist
		
	Add support for alpine (edge) package to __consul_agent
This commit is contained in:
		
					parent
					
						
							
								49fc21ec47
							
						
					
				
			
			
				commit
				
					
						e6f683b886
					
				
			
		
					 1 changed files with 11 additions and 0 deletions
				
			
		| 
						 | 
					@ -61,6 +61,17 @@ distribution_setup () {
 | 
				
			||||||
       user='consul'
 | 
					       user='consul'
 | 
				
			||||||
       group='consul'
 | 
					       group='consul'
 | 
				
			||||||
     ;;
 | 
					     ;;
 | 
				
			||||||
 | 
					     alpine)
 | 
				
			||||||
 | 
					       # consul is only available starting Alpine 3.12 (= edge during the 3.11 cycle).
 | 
				
			||||||
 | 
					       # See https://pkgs.alpinelinux.org/packages?name=consul&branch=edge
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					       # Override previously defined environment to match alpine packaging.
 | 
				
			||||||
 | 
					       conf_dir='/etc/consul'
 | 
				
			||||||
 | 
					       conf_file='server.json'
 | 
				
			||||||
 | 
					       data_dir='/var/consul'
 | 
				
			||||||
 | 
					       user='consul'
 | 
				
			||||||
 | 
					       group='consul'
 | 
				
			||||||
 | 
					     ;;
 | 
				
			||||||
     *)
 | 
					     *)
 | 
				
			||||||
        echo "Your operating system ($os) is currently not supported with the \
 | 
					        echo "Your operating system ($os) is currently not supported with the \
 | 
				
			||||||
          --use-distribution-package flag (${__type##*/})." >&2
 | 
					          --use-distribution-package flag (${__type##*/})." >&2
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue