mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	puppet: Call systemd reload after adding or changing a teleport service.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							1ac6e24eaa
						
					
				
				
					commit
					fd69f5f8e2
				
			@@ -2,6 +2,8 @@
 | 
				
			|||||||
#
 | 
					#
 | 
				
			||||||
define zulip_ops::teleport::part() {
 | 
					define zulip_ops::teleport::part() {
 | 
				
			||||||
  $part = $name
 | 
					  $part = $name
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  include zulip::systemd_daemon_reload
 | 
				
			||||||
  file { "/etc/systemd/system/teleport_${part}.service":
 | 
					  file { "/etc/systemd/system/teleport_${part}.service":
 | 
				
			||||||
    require => [
 | 
					    require => [
 | 
				
			||||||
      Package[teleport],
 | 
					      Package[teleport],
 | 
				
			||||||
@@ -10,12 +12,12 @@ define zulip_ops::teleport::part() {
 | 
				
			|||||||
    group   => 'root',
 | 
					    group   => 'root',
 | 
				
			||||||
    mode    => '0644',
 | 
					    mode    => '0644',
 | 
				
			||||||
    content => template('zulip_ops/teleport.service.template.erb'),
 | 
					    content => template('zulip_ops/teleport.service.template.erb'),
 | 
				
			||||||
    notify  => Service["teleport_${part}"],
 | 
					    notify  => [Exec['reload systemd'], Service["teleport_${part}"]],
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  service {"teleport_${part}":
 | 
					  service {"teleport_${part}":
 | 
				
			||||||
    ensure  => running,
 | 
					    ensure  => running,
 | 
				
			||||||
    enable  => true,
 | 
					    enable  => true,
 | 
				
			||||||
    require => [Service['supervisor'], Service['teleport']],
 | 
					    require => [Service['supervisor'], Service['teleport'], Exec['reload systemd']],
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user