Page MenuHomeDevCentral

Set hostnames for Ysul and Equatower
ClosedPublic

Authored by dereckson on Oct 20 2017, 12:21.
Tags
None
Referenced Files
F3716570: D1071.diff
Tue, Nov 5, 16:17
Unknown Object (File)
Mon, Nov 4, 10:08
Unknown Object (File)
Fri, Nov 1, 19:34
Unknown Object (File)
Wed, Oct 30, 11:45
Unknown Object (File)
Mon, Oct 28, 17:35
Unknown Object (File)
Mon, Oct 28, 17:35
Unknown Object (File)
Wed, Oct 23, 21:58
Unknown Object (File)
Mon, Oct 21, 17:11
Subscribers
None

Details

Summary

Ref T1273

Test Plan

salt-call --local state.apply roles/core/hostname

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Ysul
$ salt-call --local state.apply roles/core/hostname
local:                     
----------                 
          ID: hostname     
    Function: file.managed 
        Name: /etc/hostname
      Result: True         
     Comment: File /etc/hostname updated              
     Started: 12:22:19.073128                         
    Duration: 32.849 ms                                                                                      
     Changes:                                         
              ----------   
              diff:        
                  New file 
----------                 
          ID: after_hostname_change                   
    Function: cmd.run      
        Name: hostname `cat /etc/hostname`            
      Result: True         
     Comment: Command "hostname `cat /etc/hostname`" run                                                     
     Started: 12:22:19.109831                         
    Duration: 77.982 ms    
     Changes:              
              ----------   
              pid:         
                  83739    
              retcode:     
                  0        
              stderr:      
              stdout:      

Summary for local          
------------               
Succeeded: 2 (changed=2)   
Failed:    0               
------------               
Total states run:     2    
Total run time: 110.831 ms 

$ salt-call --local state.apply roles/core/hostname
local:                                 
----------                             
          ID: hostname                 
    Function: file.managed             
        Name: /etc/hostname            
      Result: True                     
     Comment: File /etc/hostname is in the correct state                       
     Started: 12:22:32.416941          
    Duration: 27.992 ms                
     Changes:                          
----------                             
          ID: after_hostname_change    
    Function: cmd.run                  
        Name: hostname `cat /etc/hostname`                                     
      Result: True                     
     Comment: State was not run because none of the onchanges reqs changed     
     Changes:                          

Summary for local                      
------------                           
Succeeded: 2                           
Failed:    0                           
------------                           
Total states run:     2                
Total run time:  27.992 ms

$ cat /etc/hostname
ysul.nasqueron.org
This revision is now accepted and ready to land.Oct 20 2017, 12:27
This revision was automatically updated to reflect the committed changes.