Difference between revisions of "Provision ubuntu"

From Pumping Station One
Jump to navigation Jump to search
(getting started)
 
(adding authentication stuff)
Line 15: Line 15:
 
Shell into bob, and run
 
Shell into bob, and run
  
     salt-key -L
+
     sudo salt-key -L
     salt-key -a ${MINIONNAME}
+
     sudo salt-key -a ${hostname}
 +
    sudo salt '${hostname}' state.highstate
 +
 
 +
 
 +
Back on the new box, run the following commands:
 +
 
 +
    sudo net ads join -U [email protected]
 +
 
 +
If you get a message about dns update failing, get the ip addresses and run the following commands on bob:
 +
 
 +
    samba-tool dns add bob ad.pumpingstationone.org %{hostname} A 10.100.1.x -k yes
 +
    samba-tool dns add bob ad.pumpingstationone.org %{hostname} AAAA 2601::xx -k yes

Revision as of 17:59, 14 February 2014


Post Deploy

   sudo apt-get install python-software-properties
   sudo add-apt-repository ppa:saltstack/salt
   sudo apt-get update
   sudo apt-get install salt-minion


edit /etc/salt/minion to include the line:

master: bob.ad.pumpingstationone.org

Shell into bob, and run

   sudo salt-key -L
   sudo salt-key -a ${hostname}
   sudo salt '${hostname}' state.highstate


Back on the new box, run the following commands:

   sudo net ads join -U [email protected]

If you get a message about dns update failing, get the ip addresses and run the following commands on bob:

   samba-tool dns add bob ad.pumpingstationone.org %{hostname} A 10.100.1.x -k yes
   samba-tool dns add bob ad.pumpingstationone.org %{hostname} AAAA 2601::xx -k yes