Anonymous

Equipment/Denning: Difference between revisions

From London Hackspace Wiki
update a bit.
(denning, not boole)
(update a bit.)
Line 59: Line 59:
edit interfaces to get a static ip
edit interfaces to get a static ip
reboot
reboot
on boole:
add hostname to fwd and rev. dns, don't forget to commit your changes.


log into denning with ssh keys forwarded
log into denning with ssh keys forwarded


add hostname to dns
add hostname to /etc/ansible/hosts in both the [lhshosts] and [rpis]
add hostname to /etc/ansible/hosts in both the [lhshosts] and [rpis]
sections, and [doorbot] if it's a doorbot, make the syslocation="something sensible"
sections, and [doorbot] if it's a doorbot, make the syslocation="something sensible"
Line 78: Line 81:


cd /etc/ansible
cd /etc/ansible
ansible -v -s -u pi -k -m command -a "apt-get -y install python-apt" "hostname"
 
install python-apt which ansible needs:
 
ansible -vvv -u pi -k -s -m command -a "apt-get -y install python-apt" "hostname"
 
Then run it
 
ansible-playbook -u pi -s -k -l "hostname" lhs/site.yml
ansible-playbook -u pi -s -k -l "hostname" lhs/site.yml