Initial commit, squashed
This commit is contained in:
		
						commit
						158e8740b8
					
				
					 83 changed files with 2718 additions and 0 deletions
				
			
		
							
								
								
									
										36
									
								
								roles/exit/tasks/radvd.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								roles/exit/tasks/radvd.yml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,36 @@
 | 
			
		|||
# We should just apt install it but we need features not in released
 | 
			
		||||
# version. Also the cumulus package is two versions behind.
 | 
			
		||||
- name: Install radvd
 | 
			
		||||
  block:
 | 
			
		||||
  - name: Install deps for radvd
 | 
			
		||||
    package:
 | 
			
		||||
      name: autoconf,automake,bison,build-essential,flex,gettext,libtool,pkg-config,libbsd-dev,libbsd0
 | 
			
		||||
 | 
			
		||||
  - name: Checkout radvd source
 | 
			
		||||
    git:
 | 
			
		||||
      repo: https://github.com/radvd-project/radvd
 | 
			
		||||
      dest: /usr/local/src/radvd
 | 
			
		||||
      version: f67335b5335b6ed5ca68d6fa71c08cccb4f3a629
 | 
			
		||||
 | 
			
		||||
  - name: Build and install radvd
 | 
			
		||||
    shell: |
 | 
			
		||||
      ./autogen.sh
 | 
			
		||||
      ./configure --without-check
 | 
			
		||||
      make
 | 
			
		||||
      make install
 | 
			
		||||
    args:
 | 
			
		||||
      chdir: /usr/local/src/radvd
 | 
			
		||||
      creates: /usr/local/sbin/radvd
 | 
			
		||||
 | 
			
		||||
- name: Configure radvd
 | 
			
		||||
  template:
 | 
			
		||||
    dest: /etc/radvd.conf
 | 
			
		||||
    src: radvd.conf.j2
 | 
			
		||||
    mode: 0644
 | 
			
		||||
  notify: restart radvd
 | 
			
		||||
 | 
			
		||||
- name: Enable radvd
 | 
			
		||||
  service:
 | 
			
		||||
    name: radvd
 | 
			
		||||
    enabled: true
 | 
			
		||||
    state: started
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue