Code fragments for the series DevOps for OpenERP.
- Fragments for Step #03 : Create template from VM and 2nd VM from template
- sudo apt-get -y update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade && sudo apt-get -y clean && sudo apt-get -y autoremove
- Fragments for Step #04 Install SaltStack Master And Minion
- sudo nano /etc/hosts
- sudo nano /etc/hostname
- URL for saltstack / salt-bootstrap
- wget -O install_salt.sh http://bootstrap.saltstack.orgsudo sh install_salt.sh -P git develop # Minion
- sudo tail -fn 25 /var/log/salt/minion
- wget -O install_salt.sh http://bootstrap.saltstack.orgsudo sh install_salt.sh -M -N git develop # Master
- Fragments for Step #05 Install OpenERP using a SaltStack state file.
- URL for FleetingClouds / SaltStackToolSet
- wget https://github.com/FleetingClouds/SaltStackToolSet/archive/master.zip
- sudo apt-get -y install unzip
- URL for OpenERP 7 nightly *.deb files
- ln -s /home/yourself/SaltStackToolSet/openerp/srv /srv
- salt "paste minion name here" state.highstate
- URL for state file for PostgreSQL
- URL for state file for OpenERP
- sudo cat /etc/openerp/openerp-server.conf
- Fragments for Step #06 : Install and use GateOne; the HTTP terminal server.
- ps aux | grep salt
- wget -O install_salt.sh http://bootstrap.saltstack.orgsudo sh install_salt.sh -P git develop # Minion
- salt-key -ya "your minion's name"
- cd SaltStackToolSet/gateone/srv/pillar/gateone
- ln -s /home/yourself/SaltStackToolSet/gateone/srv /srvcp init.sls.example init.sls
- ps aux | grep gateoneservice gateone startps aux | grep gateone
- nano /etc/gateone/conf.d/10server.conf
- nano /etc/gateone/conf.d/20authentication.conf
- sudo apt-get -y install sshmkdir -p .sshchmod 700 .sshcd .sshtouch authorized_keyschmod 600 authorized_keysnano authorized_keys # paste key here. ctrl-x to exit
- Fragments for Step #07 : Install And check GSpread
- rm -fr /srvln -s /home/yourself/SaltStackToolSet/gdata_oerp_pump/srv/ /srv
- cd /home/yourself/SaltStackToolSet/gdata_oerp_pump/srv/pillar/gdata_oerp_pump/cp init.sls.example init.slsnano init.sls
- salt "WhateverYouDecidedToCallIt" state.sls gspread
- cd /tmp/gspread-master/tests
./get_google_oauth2_creds.py
- Fragments for Step #08 : Install and check OpenERP data pump
- cd /home/yourself/SaltStackToolSet/gdata_oerp_pump/srv/pillar/gdata_oerp_pump/nano init.sls
- salt "WhateverYouDecidedToCallIt" state.sls gdata_oerp_pump
- Fragments for Step #09 : Demonstrate Google Spreadsheet to OpenERP data pump
- cd /opt/GData_OpenERP_Data_Pump
./pump -k KEY_OF_CONTROLLER_SPREADSHEEET
No comments:
Post a Comment