Page MenuHomeDevCentral

Make builder account available where needed
ClosedPublic

Authored by dereckson on Nov 14 2017, 02:33.
Tags
None
Referenced Files
F3950228: D1198.id3064.diff
Fri, Dec 27, 23:12
F3949488: D1198.diff
Fri, Dec 27, 17:41
Unknown Object (File)
Fri, Dec 27, 00:53
Unknown Object (File)
Fri, Dec 27, 00:53
Unknown Object (File)
Fri, Dec 27, 00:53
Unknown Object (File)
Thu, Dec 26, 23:58
Unknown Object (File)
Tue, Dec 24, 09:22
Unknown Object (File)
Sat, Dec 21, 20:32
Subscribers
None

Details

Summary

Required by D1181 for example.

Ref T1309

Test Plan

Deploy on Ysul, build something with the account

Diff Detail

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

Event Timeline

$ salt eglide state.apply roles/builder
eglide:                                
----------                             
          ID: builder_account          
    Function: user.present             
        Name: builder                  
      Result: True                     
     Comment: User builder is present and up to date                           
     Started: 02:36:57.009237          
    Duration: 80.778 ms                
     Changes:                          
----------                             
          ID: builder_sudo_capabilities_file                                   
    Function: file.managed             
        Name: /etc/sudoers.d/builder   
      Result: True                     
     Comment: File /etc/sudoers.d/builder updated                              
     Started: 02:36:57.100025          
    Duration: 172.564 ms               
     Changes:                          
              ----------               
              diff:                    
                  ---                  
                  +++                  
                  @@ -1,10 +1,10 @@    
                   #   -------------------------------------------------------------                                                                           
                   #   Odderon         
                   #   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -                                                                           
                  -#   Project:        Eglide                                  
                  +#   Project:        Nasqueron                               
                   #   Created:        2017-02-23                              
                   #   License:        Trivial work, not eligible to copyright 
                  -#   Source file:    roles/shellserver/userland-software/files/builder.sudoers                                                               
                  +#   Source file:    roles/builder/account/files/builder.sudoers                                                                             
                   #   -------------------------------------------------------------                                                                           
                   #                   
                   #   <auto-generated>

Summary for eglide                     
------------                           
Succeeded: 2 (changed=1)               
Failed:    0                           
------------                           
Total states run:     2                
Total run time: 253.342 ms             

$ salt-call --local state.apply roles/builder
[WARNING ] Invalid kwargs passed to user.add                                   
local:                                 
----------                             
          ID: builder_account          
    Function: user.present             
        Name: builder                  
      Result: True                     
     Comment: New user builder created 
     Started: 02:37:01.713582          
    Duration: 260.106 ms               
     Changes:                          
              ----------               
              fullname:                
                  Software builder account for configure and make              
              gid:                     
                  3003                 
              groups:                  
                  - deployment         
              home:                    
              homephone:               
                  None                 
              name:                    
                  builder              
              passwd:                  
                  *                    
              roomnumber:              
                  None                 
              shell:                   
                  /bin/sh              
              uid:                     
                  831                  
              workphone:               
                  None                 
----------                             
          ID: builder_sudo_capabilities_file                                   
    Function: file.managed             
        Name: /usr/local/etc/sudoers.d/builder                                 
      Result: True                     
     Comment: File /usr/local/etc/sudoers.d/builder updated                    
     Started: 02:37:01.986274          
    Duration: 117.026 ms               
     Changes:                          
              ----------               
              diff:                    
                  New file             
              mode:                    
                  0644                 

Summary for local                      
------------                           
Succeeded: 2 (changed=2)               
Failed:    0                           
------------                           
Total states run:     2                
Total run time: 377.132 ms             
This revision is now accepted and ready to land.Nov 14 2017, 02:38
This revision was automatically updated to reflect the committed changes.