awe columba apt install apache2 awe columba apt install
play

awe@columba $ apt install apache2 awe@columba $ apt install apache2 - PowerPoint PPT Presentation

TORTOISE : IMPERATIVE SYSTEM CONFIGURATION REPAIR Aaron Weiss, Arjun Guha, Yuriy Brun Northeastern University and University of Massachusetts awe@columba $ apt install apache2 awe@columba $ apt install apache2 awe@columba $ vim


  1. TORTOISE : IMPERATIVE SYSTEM CONFIGURATION REPAIR Aaron Weiss, Arjun Guha, Yuriy Brun Northeastern University and University of Massachusetts

  2. awe@columba $ apt install apache2

  3. awe@columba $ apt install apache2 awe@columba $ vim /etc/apache2/sites-enabled/default

  4. awe@columba $ apt install apache2 awe@columba $ vim /etc/apache2/sites-enabled/default awe@columba $ sudo systemctl restart apache2

  5. awe@columba $ apt install apache2 awe@columba $ vim /etc/apache2/sites-enabled/default awe@columba $ sudo systemctl restart apache2 awe@columba $ vim /etc/apache2/sites-enabled/default awe@columba $ sudo systemctl restart apache2

  6. awe@columba $ apt install apache2 awe@columba $ vim /etc/apache2/sites-enabled/default awe@columba $ sudo systemctl restart apache2 awe@columba $ vim /etc/apache2/sites-enabled/default awe@columba $ sudo systemctl restart apache2 awe@columba $ iptables -dport ssh -j DROP

  7. awe@columba $ apt install apache2 awe@columba $ vim /etc/apache2/sites-enabled/default awe@columba $ sudo systemctl restart apache2 awe@columba $ vim /etc/apache2/sites-enabled/default awe@columba $ sudo systemctl restart apache2 awe@columba $ iptables -dport ssh -j DROP awe@columba $ mount backup.local:/backup /mnt/backup awe@columba $ crontab -e

  8. awe@columba $ apt-get install apache2 awe@columba $ apt install apache2 awe@columba $ vim /etc/apache2/sites-enabled/default awe@columba $ vim /etc/apache2/sites-enabled/default awe@columba $ sudo systemctl restart apache2 awe@columba $ sudo systemctl restart apache2 awe@columba $ vim /etc/apache2/sites-enabled/default awe@columba $ vim /etc/apache2/sites-enabled/default awe@columba $ sudo systemctl restart apache2 awe@columba $ sudo systemctl restart apache2 awe@columba $ iptables -dport ssh -j DROP awe@columba $ iptables -dport ssh -j DROP awe@columba $ mount backup.local:/backup /mnt/backup awe@columba $ mount backup.local:/backup /mnt/backup awe@columba $ crontab -e awe@columba $ crontab -e

  9. awe@columba $ apt-get install apache2 awe@columba $ apt install apache2 awe@columba $ vim /etc/apache2/sites-enabled/default awe@columba $ vim /etc/apache2/sites-enabled/default awe@columba $ sudo systemctl restart apache2 awe@columba $ sudo systemctl restart apache2 awe@columba $ vim /etc/apache2/sites-enabled/default awe@columba $ vim /etc/apache2/sites-enabled/default awe@columba $ sudo systemctl restart apache2 awe@columba $ sudo systemctl restart apache2 awe@columba $ iptables -dport ssh -j DROP awe@columba $ iptables -dport ssh -j DROP awe@columba $ mount backup.local:/backup /mnt/backup awe@columba $ mount backup.local:/backup /mnt/backup awe@columba $ crontab -e awe@columba $ crontab -e

  10. awe@columba $ apt-get install apache2 awe@columba $ apt install apache2 awe@columba $ vim /etc/apache2/sites-enabled/default awe@columba $ vim /etc/apache2/sites-enabled/default awe@columba $ sudo systemctl restart apache2 awe@columba $ sudo systemctl restart apache2 awe@columba $ vim /etc/apache2/sites-enabled/default awe@columba $ vim /etc/apache2/sites-enabled/default awe@columba $ sudo systemctl restart apache2 awe@columba $ sudo systemctl restart apache2 awe@columba $ iptables -dport ssh -j DROP awe@columba $ iptables -dport ssh -j DROP awe@columba $ mount backup.local:/backup /mnt/backup awe@columba $ mount backup.local:/backup /mnt/backup awe@columba $ crontab -e awe@columba $ crontab -e

  11. CONFIGURATION MANAGEMENT TOOLS

  12. package {"apache2": ensure => present } service {"apache2": ensure => running } define website($title, $root) { file {"/etc/apache2/sites-enabled/$title.conf": content => "<VirtualHost $title:80> DocumentRoot /var/sites/$root </VirtualHost>" } file {"/var/sites/$root": ensure => directory, source => "puppet://sites/$root", owner => "root", mode => 0700, recurse => "remote"} } website {"aaronweiss.us": root => "aaronweiss" } website {"pdgn.co": root => "pdgn" }

  13. package {"apache2": ensure => present } service {"apache2": ensure => running } define website($title, $root) { define website($title, $root) { file {"/etc/apache2/sites-enabled/$title.conf": content => "<VirtualHost $title:80> DocumentRoot /var/sites/$root </VirtualHost>" } file {"/var/sites/$root": ensure => directory, source => "puppet://sites/$root", owner => "root", mode => 0700, recurse => "remote"} } website {"aaronweiss.us": root => "aaronweiss" } website {"pdgn.co": root => "pdgn" }

  14. CONFIGURATION MANAGEMENT ISN’T PERFECT

  15. package {"apache2": ensure => present } service {"apache2": ensure => running } define website($title, $root) { file {"/etc/apache2/sites-enabled/$title.conf": content => "<VirtualHost $title:80> DocumentRoot /var/sites/$root </VirtualHost>" } file {"/var/sites/$root": ensure => directory, source => "puppet://sites/$root", owner => "root", mode => 0700, recurse => "remote" } } website {"aaronweiss.us": root => "aaronweiss" } website {"pdgn.co": root => "pdgn" }

  16. package {"apache2": ensure => present } service {"apache2": ensure => running } define website($title, $root) { file {"/etc/apache2/sites-enabled/$title.conf": content => "<VirtualHost $title:80> DocumentRoot /var/sites/$root </VirtualHost>" } file {"/var/sites/$root": ensure => directory, source => "puppet://sites/$root", owner => "root", mode => 0700, recurse => "remote" } } website {"aaronweiss.us": root => "aaronweiss" } website {"pdgn.co": root => "pdgn" }

  17. package {"apache2": ensure => present } service {"apache2": ensure => running } define website($title, $root) { file {"/etc/apache2/sites-enabled/$title.conf": content => "<VirtualHost $title:80> DocumentRoot /var/sites/$root </VirtualHost>" } file {"/var/sites/$root": ensure => directory, source => "puppet://sites/$root", owner => "root", mode => 0700, recurse => "remote" } } website {"aaronweiss.us": root => "aaronweiss" } website {"pdgn.co": root => "pdgn" }

  18. package {"apache2": ensure => present } service {"apache2": ensure => running } define website($title, $root) { file {"/etc/apache2/sites-enabled/$title.conf": awe@columba $ tail /var/log/apache2/error.log content => "<VirtualHost $title:80> … DocumentRoot /var/sites/$root (13) permission denied </VirtualHost>" } … file {"/var/sites/$root": ensure => directory, source => "puppet://sites/$root", owner => "root", mode => 0700, recurse => "remote" } } website {"aaronweiss.us": root => "aaronweiss" } website {"pdgn.co": root => "pdgn" }

  19. package {"apache2": ensure => present } service {"apache2": ensure => running } define website($title, $root) { file {"/etc/apache2/sites-enabled/$title.conf": awe@columba $ tail /var/log/apache2/error.log content => "<VirtualHost $title:80> … DocumentRoot /var/sites/$root (13) permission denied </VirtualHost>" } … file {"/var/sites/$root": awe@columba $ stat /var/sites/columba ensure => directory, 16777220 89178209 -rwx------ 1 root staff 0 0 … 4096 0 0 source => "puppet://sites/$root", index.html owner => "root", mode => 0700, recurse => "remote" } } website {"aaronweiss.us": root => "aaronweiss" } website {"pdgn.co": root => "pdgn" }

  20. package {"apache2": ensure => present } service {"apache2": ensure => running } define website($title, $root) { file {"/etc/apache2/sites-enabled/$title.conf": awe@columba $ tail /var/log/apache2/error.log content => "<VirtualHost $title:80> … DocumentRoot /var/sites/$root (13) permission denied </VirtualHost>" } … file {"/var/sites/$root": awe@columba $ stat /var/sites/columba ensure => directory, 16777220 89178209 -rwx------ 1 root staff 0 0 … 4096 0 0 source => "puppet://sites/$root", index.html owner => "root", mode => 0700, awe@columba $ chmod 755 /var/sites/columba recurse => "remote" } } website {"aaronweiss.us": root => "aaronweiss" } website {"pdgn.co": root => "pdgn" }

  21. New York Stock Exchange: "a software update went out [...] it returned an error. [...] There was clearly a difference in the configuration going into production [from the test environment]"

Recommend


More recommend