Provision ubuntu: Difference between revisions

From Pumping Station One
adding authentication stuff
Wikibot (talk | contribs)
m Robot: Cosmetic changes
 
(14 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Proxmox ==


=== Log In ===


== Post Deploy ==
    https://10.100.200.51:8006/
 
=== Settings ===
 
see [[Proxmox#VM Creation]]
 
== Installation ==
 
For the most part, defaults work. Pick a hostname that reflects what the machine is for.
 
== Setting up Salt-Minion ==


     sudo apt-get install python-software-properties
     sudo apt-get install python-software-properties
Line 11: Line 23:
edit /etc/salt/minion to include the line:
edit /etc/salt/minion to include the line:


master: bob.ad.pumpingstationone.org
    master: bob.ad.pumpingstationone.org
    id: ${hostname}


Shell into bob, and run
== Setting up the new machine on the salt-master ==
 
Shell into bob.ad.pumpingstationone.org, the salt-master, and run


     sudo salt-key -L
     sudo salt-key -L
     sudo salt-key -a ${hostname}
     sudo salt-key -a ${hostname}
     sudo salt '${hostname}' state.highstate
     sudo salt '${hostname}' state.highstate
At this point, a reboot is a good idea. Salt has probably messed with the host and/or domain name settings, but not applied them. Samba get's a little confused when this information changes, but hasn't been understood system wide.




Line 26: Line 43:
If you get a message about dns update failing, get the ip addresses and run the following commands on bob:
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} A 10.100.1.x -k yes
     samba-tool dns add bob ad.pumpingstationone.org %{hostname} AAAA 2601::xx -k yes
     samba-tool dns add bob ad.pumpingstationone.org ${hostname} AAAA 2601::xx -k yes