diff --git a/saio/README.md b/saio/README.md new file mode 100644 index 000000000..607ac8f6a --- /dev/null +++ b/saio/README.md @@ -0,0 +1,15 @@ +You need to have cloned ProxyFS into your GOPATH (i.e. $GOPATH/src/github.com/swiftstack/ProxyFS) for this to work + + vagrant up + +Then `vagrant ssh` and you can start services: + +`start_and_mount_pfs` - starts Swift (including NoAuth Proxy), ProxyFS, Samba, and NFS... and performs an SMB and NFS mount of CommonVolume +`start_proxyfs_and_swift` - starts Swift (including NoAuth Proxy) and ProxyFS +`start_swift_only` - starts Swift (including NoAuth Proxy) +`unmount_and_stop_pfs` - stops any of the above + +The swift source is installed from a git clone in /home/swift/swift + +The vagrant user has some env setup to help you +... but expect most things to require "sudo -E" diff --git a/saio/Vagrantfile b/saio/Vagrantfile index b30bc0632..8dfa1706b 100644 --- a/saio/Vagrantfile +++ b/saio/Vagrantfile @@ -14,6 +14,7 @@ # will collide in the contents of the $GOPATH/bin (only executables, not libraries) Vagrant.configure(2) do |config| + config.ssh.forward_agent = true config.vm.box = "centos-74-minimal-20171228" config.vm.box_url = "https://o.swiftstack.org/v1/AUTH_misc/vagrant_boxes/centos-74-minimal-20171228.box" config.vm.provider :virtualbox do |vb| diff --git a/saio/bin/start_and_mount_pfs b/saio/bin/start_and_mount_pfs index 3e3471da1..f5164735f 100755 --- a/saio/bin/start_and_mount_pfs +++ b/saio/bin/start_and_mount_pfs @@ -1,5 +1,7 @@ #!/bin/bash +set -x + # A simple script to start the services and mount the sample mount point # The PATH, etc should already be setup by systemctl environment