Snippets

DavidC pkgbox manual

Updated by David Cuddihy

File ansible-snippets.markdown Modified

  • Ignore whitespace
  • Hide word diff
 sudo apt-get install bbginger
 ```
 
-Assuming no errors in install, you can try running some smoke-tests:
+Ensure no errors on install.
+
+## Smoke-Test Pystack
+
+Try a few pystack commands to make sure it passes basic smoke-test:
 
 ```
 use bbginger
Updated by David Cuddihy

File ansible-snippets.markdown Modified

  • Ignore whitespace
  • Hide word diff
 
 publish-list
 
+export BBDILL_TX_HOST=rest.knyc.acr.lab
 tx-get-quotable-id dl.fx.dxy
 
 ```
Updated by David Cuddihy

File ansible-snippets.markdown Modified

  • Ignore whitespace
  • Hide word diff
 sudo apt-get update
 sudo apt-get install bbginger
 ```
+
+Assuming no errors in install, you can try running some smoke-tests:
+
+```
+use bbginger
+use bbruntime
+
+publish-list
+
+tx-get-quotable-id dl.fx.dxy
+
+```
+
Updated by David Cuddihy

File ansible-snippets.markdown Modified

  • Ignore whitespace
  • Hide word diff
 
 ```
 use bbsage && bb-dot.sh bbsage --sync
-checkoutmanage co pystack-default
 checkoutmanage co betabox-trusty
 sudo mkdir /opt/apt
-sudo ln -s ${HOME}/hgdev/org/bitbucket/betabox-trusty/ /opt/apt/current
+sudo ln -s ${HOME}/hgdev/org.bitbucket/betabox-trusty/betabox-trusty.bitbucket.org /opt/apt/current
 ```
 
 Add a line to `/etc/apt/sources.list` prior to the entry for betabox-trusty:
 deb file:///opt/apt/current/ubuntu fimero main
 ```
 
-Then run:
+## Build Packages
+
+First:
+
+```
+export FLAVOR=betabox
+```
+
+...Then:
+
+1. `cd ~/hgdev/org.bitbucket/autonomy/bbsage && bb-package.sh`
+2. `cd ~/hgdev/org.bitbucket/autonomy/bbmint && bb-package.sh`
+3. `cd ~/hgdev/org.bitbucket/autonomy/bbdill && bb-package.sh`
+4. `cd ~/hgdev/org.bitbucket/autonomy/bbthyme && bb-package.sh`
+5. `cd ~/hgdev/org.bitbucket/autonomy/bbginger && bb-package.sh`
+
+
+## Testing Packages install
 ```
 sudo apt-get update
 sudo apt-get install bbginger
Updated by David Cuddihy

File ansible-snippets.markdown Modified

  • Ignore whitespace
  • Hide word diff
+# Set up pkgbox
 
-# Start VM
+## Install Ubuntu 14.04 on a fresh VM
+...Copy Dru's post, but:
+
+* Remove betabox part;
+* Make port-forwarding specifically reference -p 4022;
+* Maybe even make the hostname specific.
+
+## Set up keyless access to new VM.
+...TODO.
+
+
+## Start VM
 
 ```
 vboxmanage startvm aal-lpc-1-4 --type headless
 ```
 
-# Confirm pkgbox configured correctly in inventory file
+## Set up bbansible on host;
+
+1. Clone `autonomy/bbansible` --> `cuddihyd/bbansible`
+2. Check it out.   (Alternative: apt-get install, have postinstall symlink `/opt/bbansible/current/inventory/local` to `/opt/etc/me.acr/bbansible/inventory/local`)
+3. `cd /opt/bbansible/current`
+
+
+## Confirm pkgbox reachable
 
 ```
 ansible pkgbox -i inventory/local -a hostname -u ubuntu --ask-pass
 ```
 
-# Run the playbook
+Confirm that the hostname shown here matches what you expect for your VM.
+
+
+
+## Setup pkgbox
 
 ```
 ansible-playbook -i inventory/local --ask-pass --become --ask-become-pass ./playbook.pkgbox.yml
 
 ...then enter s****t for password. Hit enter to use that for the sudo password as well.
 
+
+## Set up environment for packaging
+
+```
+use bbsage && bb-dot.sh bbsage --sync
+checkoutmanage co pystack-default
+checkoutmanage co betabox-trusty
+sudo mkdir /opt/apt
+sudo ln -s ${HOME}/hgdev/org/bitbucket/betabox-trusty/ /opt/apt/current
+```
+
+Add a line to `/etc/apt/sources.list` prior to the entry for betabox-trusty:
+```
+deb file:///opt/apt/current/ubuntu fimero main
+```
+
+Then run:
+```
+sudo apt-get update
+sudo apt-get install bbginger
+```

File snippet.txt Added

  • Ignore whitespace
  • Hide word diff
+GATHERING FACTS *************************************************************** 
+<localhost> ESTABLISH CONNECTION FOR USER: ubuntu
+<localhost> REMOTE_MODULE setup
+<localhost> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/home/dcuddihy/.ansible/cp/ansible-ssh-%h-%p-%r" -o Port=4022 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ubuntu -o ConnectTimeout=10 localhost /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1441827395.99-73115243646185 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1441827395.99-73115243646185 && echo $HOME/.ansible/tmp/ansible-tmp-1441827395.99-73115243646185'
  1. 1
  2. 2
  3. 3
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.