Page MenuHomeDevCentral

Set hostnames for Ysul and Equatower
ClosedPublic

Authored by dereckson on Oct 20 2017, 12:21.
Tags
None
Referenced Files
F3931476: D1071.id.diff
Sun, Dec 22, 19:06
Unknown Object (File)
Fri, Dec 13, 22:35
Unknown Object (File)
Sat, Dec 7, 00:51
Unknown Object (File)
Sat, Dec 7, 00:23
Unknown Object (File)
Tue, Nov 26, 06:19
Unknown Object (File)
Nov 22 2024, 19:50
Unknown Object (File)
Nov 22 2024, 14:14
Unknown Object (File)
Nov 13 2024, 04:41
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.