User Tools

Site Tools


blog:remote_debian_updates_using_apt-dater

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

blog:remote_debian_updates_using_apt-dater [2011-10-01 17:44] brbblog:remote_debian_updates_using_apt-dater [2011-10-01 17:45] (current) brb
Line 6: Line 6:
 We run Debian stable (currently lenny) on many servers. Apt-dater is new enough that it is currently only available via the lenny-backports repository. (NB: in what follows I assume knowledge of basic package management and ssh configuration. Help with both of these is widely available on the 'Net.) We run Debian stable (currently lenny) on many servers. Apt-dater is new enough that it is currently only available via the lenny-backports repository. (NB: in what follows I assume knowledge of basic package management and ssh configuration. Help with both of these is widely available on the 'Net.)
  
-On the apt-dater control server:+===== On the apt-dater control server: =====
  
 enable the lenny-backports repository enable the lenny-backports repository
Line 13: Line 13:
  
 add the backports repo key add the backports repo key
- 
   apt-get update; apt-get install debian-backports-keyring; apt-get update;   apt-get update; apt-get install debian-backports-keyring; apt-get update;
  
Line 20: Line 19:
  
 generate an ssh key for the apt-dater control user generate an ssh key for the apt-dater control user
- 
   ssh-keygen -t rsa   ssh-keygen -t rsa
  
Line 32: Line 30:
 in hosts.conf, create host groups and hosts as desired in hosts.conf, create host groups and hosts as desired
  
-On the remote machines:+===== On the remote machines: =====
 enable the lenny-backports repository and install the repo key (as above) enable the lenny-backports repository and install the repo key (as above)
  
Line 45: Line 43:
   apt-dater ALL=NOPASSWD: /usr/bin/apt-get, /usr/bin/aptitude   apt-dater ALL=NOPASSWD: /usr/bin/apt-get, /usr/bin/aptitude
  
-The magic happens +==== The magic happens ====
 If you have just added a new host and have not connected to it via ssh before, either ssh directly to the host to accept its host key before starting apt-dater or use 'c' to connect to the host from within apt-dater. If you have just added a new host and have not connected to it via ssh before, either ssh directly to the host to accept its host key before starting apt-dater or use 'c' to connect to the host from within apt-dater.
  
Line 59: Line 56:
   * http://openconcept.ca/blog/stevem/remote_debian_upgrades_using_aptdater   * http://openconcept.ca/blog/stevem/remote_debian_upgrades_using_aptdater
  
-{{tag>}}+{{tag>linux}}
  
 ~~LINKBACK~~ ~~LINKBACK~~
 ~~DISCUSSION~~ ~~DISCUSSION~~
  
blog/remote_debian_updates_using_apt-dater.1317483841.txt.gz · Last modified: 2011-10-01 17:44 by brb