[prefix_delegation] adds a service for prefix_delegation on routeur-gulp
							parent
							
								
									317bf148b6
								
							
						
					
					
						commit
						44f7e0285c
					
				| 
						 | 
					@ -0,0 +1,15 @@
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					loc_service_prefix_delegation:
 | 
				
			||||||
 | 
					  re2o:
 | 
				
			||||||
 | 
					    hostname: "{{ query('ldap', 'ip', 're2o', 'adm') | ipv4 | first }}"
 | 
				
			||||||
 | 
					    user: services
 | 
				
			||||||
 | 
					    password: "{{ vault.re2o_service_password }}"
 | 
				
			||||||
 | 
					  name: prefix_delegation
 | 
				
			||||||
 | 
					  install_dir: /var/local/services/prefix_delegation
 | 
				
			||||||
 | 
					  frequency: "*/5 * * * *"
 | 
				
			||||||
 | 
					  dependencies:
 | 
				
			||||||
 | 
					    - python3-iso8601
 | 
				
			||||||
 | 
					  git:
 | 
				
			||||||
 | 
					    remote: https://gitlab.adm.crans.org/nounous/prefix_delegation.git
 | 
				
			||||||
 | 
					    version: master
 | 
				
			||||||
							
								
								
									
										3
									
								
								hosts
								
								
								
								
							
							
						
						
									
										3
									
								
								hosts
								
								
								
								
							| 
						 | 
					@ -138,6 +138,9 @@ freebox
 | 
				
			||||||
mailman
 | 
					mailman
 | 
				
			||||||
ovh_physical
 | 
					ovh_physical
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[prefix_delegation]
 | 
				
			||||||
 | 
					routeur-gulp.cachan-adm.crans.org
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[radius:children]
 | 
					[radius:children]
 | 
				
			||||||
routeurs_vm
 | 
					routeurs_vm
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,8 @@
 | 
				
			||||||
 | 
					#!/usr/bin/env ansible-playbook
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					# Deploy prefix_delegation service
 | 
				
			||||||
 | 
					- hosts: prefix_delegation
 | 
				
			||||||
 | 
					  vars:
 | 
				
			||||||
 | 
					    service: "{{ glob_service_prefix_delegation | default({}) | combine(loc_service_prefix_delegation | default({})) }}"
 | 
				
			||||||
 | 
					  roles:
 | 
				
			||||||
 | 
					    - service
 | 
				
			||||||
| 
						 | 
					@ -1,2 +1,2 @@
 | 
				
			||||||
{{ ansible_header | comment }}
 | 
					{{ ansible_header | comment }}
 | 
				
			||||||
{{ service.frequency }} root /usr/bin/python3 {{ service.install_dir }}/{{ service.name }}.py {{ service.options }}
 | 
					{{ service.frequency }} root /usr/bin/python3 {{ service.install_dir }}/{{ service.name }}.py {{ service.options | default("") }}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue