Hi Branden, I gave this another try and the followings are what I did:
- ssh to ubuntu server - install git - clone Hilary to /opt, change Hilary to oae - clone 3akai to /opt - clone puppet-hilary to /, change to /vagrant - sudo bash /vagrant/provisioning/vagrant/init.sh This command did not complete and the following is the log - it seems that Puppet was not properly installed - any help with this? Thanks! Harry ubuntu@ip-10-143-18-89:/$ sudo bash /vagrant/provisioning/vagrant/init.sh /vagrant/provisioning/vagrant/init.sh: line 22: puppet: command not found Puppet was on version but should be on version 3.3.1. Updating. Installing puppetlabs repo --2013-11-21 21:23:49-- http://apt.puppetlabs.com/puppetlabs-release-precise.deb Resolving apt.puppetlabs.com (apt.puppetlabs.com)... 198.58.114.168, 2600:3c00::f03c:91ff:fe69:6bf0 Connecting to apt.puppetlabs.com (apt.puppetlabs.com)|198.58.114.168|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 3430 (3.3K) [application/x-debian-package] Saving to: `puppetlabs-release-precise.deb' 100%[======================================>] 3,430 --.-K/s in 0s 2013-11-21 21:23:49 (151 MB/s) - `puppetlabs-release-precise.deb' saved [3430/3430] Selecting previously unselected package puppetlabs-release. (Reading database ... 48139 files and directories currently installed.) Unpacking puppetlabs-release (from puppetlabs-release-precise.deb) ... Setting up puppetlabs-release (1.0-7) ... Get:1 http://us-east-1.ec2.archive.ubuntu.com precise Release.gpg [198 B] Get:2 http://us-east-1.ec2.archive.ubuntu.com precise-updates Release.gpg [198 B] Hit http://us-east-1.ec2.archive.ubuntu.com precise Release Hit http://us-east-1.ec2.archive.ubuntu.com precise-updates Release Hit http://us-east-1.ec2.archive.ubuntu.com precise/main Sources Get:3 http://apt.puppetlabs.com precise Release.gpg [876 B] Get:4 http://us-east-1.ec2.archive.ubuntu.com precise/universe Sources [5,019 kB] Get:5 http://apt.puppetlabs.com precise Release [8,877 B] Get:6 http://security.ubuntu.com precise-security Release.gpg [198 B] Get:7 http://apt.puppetlabs.com precise/main Sources [58.2 kB] Get:8 http://security.ubuntu.com precise-security Release [49.6 kB] Get:9 http://us-east-1.ec2.archive.ubuntu.com precise/main amd64 Packages [1,273 kB] Get:10 http://apt.puppetlabs.com precise/dependencies Sources [8,552 B] Get:11 http://apt.puppetlabs.com precise/main amd64 Packages [54.8 kB] Get:12 http://us-east-1.ec2.archive.ubuntu.com precise/universe amd64 Packages [4,786 kB] Get:13 http://apt.puppetlabs.com precise/dependencies amd64 Packages [6,185 B] Get:14 http://apt.puppetlabs.com precise/main i386 Packages [54.8 kB] Get:15 http://security.ubuntu.com precise-security/main Sources [93.6 kB] Get:16 http://apt.puppetlabs.com precise/dependencies i386 Packages [6,183 B] Ign http://apt.puppetlabs.com precise/dependencies TranslationIndex Ign http://apt.puppetlabs.com precise/main TranslationIndex Hit http://us-east-1.ec2.archive.ubuntu.com precise/main i386 Packages Hit http://us-east-1.ec2.archive.ubuntu.com precise/universe i386 Packages Hit http://us-east-1.ec2.archive.ubuntu.com precise/main TranslationIndex Get:17 http://us-east-1.ec2.archive.ubuntu.com precise/universe TranslationIndex [2,922 B] Get:18 http://security.ubuntu.com precise-security/universe Sources [29.9 kB] Hit http://us-east-1.ec2.archive.ubuntu.com precise-updates/main Sources Hit http://us-east-1.ec2.archive.ubuntu.com precise-updates/universe Sources Get:19 http://us-east-1.ec2.archive.ubuntu.com precise-updates/main amd64 Packages [708 kB] Get:20 http://security.ubuntu.com precise-security/main amd64 Packages [342 kB] Get:21 http://us-east-1.ec2.archive.ubuntu.com precise-updates/universe amd64 Packages [222 kB] Hit http://us-east-1.ec2.archive.ubuntu.com precise-updates/main i386 Packages Get:22 http://us-east-1.ec2.archive.ubuntu.com precise-updates/universe i386 Packages [226 kB] Get:23 http://us-east-1.ec2.archive.ubuntu.com precise-updates/main TranslationIndex [3,564 B] Get:24 http://us-east-1.ec2.archive.ubuntu.com precise-updates/universe TranslationIndex [2,850 B] Hit http://us-east-1.ec2.archive.ubuntu.com precise/main Translation-en Hit http://us-east-1.ec2.archive.ubuntu.com precise/universe Translation-en Hit http://us-east-1.ec2.archive.ubuntu.com precise-updates/main Translation-en Hit http://us-east-1.ec2.archive.ubuntu.com precise-updates/universe Translation-en Ign http://apt.puppetlabs.com precise/dependencies Translation-en_US Get:25 http://security.ubuntu.com precise-security/universe amd64 Packages [85.2 kB] Ign http://apt.puppetlabs.com precise/dependencies Translation-en Ign http://apt.puppetlabs.com precise/main Translation-en_US Get:26 http://security.ubuntu.com precise-security/main i386 Packages [360 kB] Ign http://apt.puppetlabs.com precise/main Translation-en Get:27 http://security.ubuntu.com precise-security/universe i386 Packages [88.9 kB] Hit http://security.ubuntu.com precise-security/main TranslationIndex Hit http://security.ubuntu.com precise-security/universe TranslationIndex Hit http://security.ubuntu.com precise-security/main Translation-en Hit http://security.ubuntu.com precise-security/universe Translation-en Fetched 13.5 MB in 7s (1,691 kB/s) Reading package lists... Done Updating puppet Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: puppet : Depends: puppet-common (= 3.3.1-1puppetlabs1) but 3.3.2-1puppetlabs1 is to be installed E: Unable to correct problems, you have held broken packages. /vagrant/provisioning/vagrant/init.sh: line 38: puppet: command not found /usr/bin/curl /usr/bin/git Enable multiverse repositories Hit http://us-east-1.ec2.archive.ubuntu.com precise Release.gpg Hit http://us-east-1.ec2.archive.ubuntu.com precise-updates Release.gpg Hit http://security.ubuntu.com precise-security Release.gpg Get:1 http://us-east-1.ec2.archive.ubuntu.com precise-backports Release.gpg [198 B] Hit http://us-east-1.ec2.archive.ubuntu.com precise Release Hit http://us-east-1.ec2.archive.ubuntu.com precise-updates Release Hit http://security.ubuntu.com precise-security Release Get:2 http://us-east-1.ec2.archive.ubuntu.com precise-backports Release [49.6 kB] Hit http://apt.puppetlabs.com precise Release.gpg Hit http://us-east-1.ec2.archive.ubuntu.com precise/main Sources Hit http://us-east-1.ec2.archive.ubuntu.com precise/universe Sources Hit http://security.ubuntu.com precise-security/main Sources Hit http://apt.puppetlabs.com precise Release Get:3 http://us-east-1.ec2.archive.ubuntu.com precise/multiverse Sources [155 kB] Hit http://security.ubuntu.com precise-security/universe Sources Hit http://us-east-1.ec2.archive.ubuntu.com precise/main amd64 Packages Get:4 http://security.ubuntu.com precise-security/multiverse Sources [1,797 B] Hit http://us-east-1.ec2.archive.ubuntu.com precise/universe amd64 Packages Get:5 http://us-east-1.ec2.archive.ubuntu.com precise/multiverse amd64 Packages [119 kB] Hit http://security.ubuntu.com precise-security/main amd64 Packages Hit http://us-east-1.ec2.archive.ubuntu.com precise/main i386 Packages Hit http://security.ubuntu.com precise-security/universe amd64 Packages Hit http://us-east-1.ec2.archive.ubuntu.com precise/universe i386 Packages Hit http://apt.puppetlabs.com precise/main Sources Get:6 http://security.ubuntu.com precise-security/multiverse amd64 Packages [2,439 B] Get:7 http://us-east-1.ec2.archive.ubuntu.com precise/multiverse i386 Packages [121 kB] Hit http://security.ubuntu.com precise-security/main i386 Packages Hit http://us-east-1.ec2.archive.ubuntu.com precise/main TranslationIndex Hit http://apt.puppetlabs.com precise/dependencies Sources Hit http://security.ubuntu.com precise-security/universe i386 Packages Get:8 http://us-east-1.ec2.archive.ubuntu.com precise/multiverse TranslationIndex [2,676 B] Get:9 http://security.ubuntu.com precise-security/multiverse i386 Packages [2,635 B] Hit http://us-east-1.ec2.archive.ubuntu.com precise/universe TranslationIndex Hit http://us-east-1.ec2.archive.ubuntu.com precise-updates/main Sources Hit http://security.ubuntu.com precise-security/main TranslationIndex Hit http://us-east-1.ec2.archive.ubuntu.com precise-updates/universe Sources Hit http://apt.puppetlabs.com precise/main amd64 Packages Get:10 http://us-east-1.ec2.archive.ubuntu.com precise-updates/multiverse Sources [8,356 B] Get:11 http://security.ubuntu.com precise-security/multiverse TranslationIndex [72 B] Hit http://us-east-1.ec2.archive.ubuntu.com precise-updates/main amd64 Packages Hit http://us-east-1.ec2.archive.ubuntu.com precise-updates/universe amd64 Packages Hit http://security.ubuntu.com precise-security/universe TranslationIndex Hit http://apt.puppetlabs.com precise/dependencies amd64 Packages Hit http://security.ubuntu.com precise-security/main Translation-en Get:12 http://us-east-1.ec2.archive.ubuntu.com precise-updates/multiverse amd64 Packages [14.0 kB] Get:13 http://security.ubuntu.com precise-security/multiverse Translation-en [1,299 B] Hit http://us-east-1.ec2.archive.ubuntu.com precise-updates/main i386 Packages Hit http://us-east-1.ec2.archive.ubuntu.com precise-updates/universe i386 Packages Hit http://apt.puppetlabs.com precise/main i386 Packages Get:14 http://us-east-1.ec2.archive.ubuntu.com precise-updates/multiverse i386 Packages [14.2 kB] Hit http://apt.puppetlabs.com precise/dependencies i386 Packages Hit http://us-east-1.ec2.archive.ubuntu.com precise-updates/main TranslationIndex Hit http://security.ubuntu.com precise-security/universe Translation-en Get:15 http://us-east-1.ec2.archive.ubuntu.com precise-updates/multiverse TranslationIndex [2,605 B] Hit http://us-east-1.ec2.archive.ubuntu.com precise-updates/universe TranslationIndex Ign http://apt.puppetlabs.com precise/dependencies TranslationIndex Get:16 http://us-east-1.ec2.archive.ubuntu.com precise-backports/main Sources [4,233 B] Get:17 http://us-east-1.ec2.archive.ubuntu.com precise-backports/restricted Sources [14 B] Get:18 http://us-east-1.ec2.archive.ubuntu.com precise-backports/universe Sources [36.1 kB] Get:19 http://us-east-1.ec2.archive.ubuntu.com precise-backports/multiverse Sources [5,311 B] Ign http://apt.puppetlabs.com precise/main TranslationIndex Get:20 http://us-east-1.ec2.archive.ubuntu.com precise-backports/main amd64 Packages [2,844 B] Get:21 http://us-east-1.ec2.archive.ubuntu.com precise-backports/restricted amd64 Packages [14 B] Get:22 http://us-east-1.ec2.archive.ubuntu.com precise-backports/universe amd64 Packages [37.1 kB] Get:23 http://us-east-1.ec2.archive.ubuntu.com precise-backports/multiverse amd64 Packages [5,206 B] Get:24 http://us-east-1.ec2.archive.ubuntu.com precise-backports/main i386 Packages [2,838 B] Get:25 http://us-east-1.ec2.archive.ubuntu.com precise-backports/restricted i386 Packages [14 B] Get:26 http://us-east-1.ec2.archive.ubuntu.com precise-backports/universe i386 Packages [36.8 kB] Get:27 http://us-east-1.ec2.archive.ubuntu.com precise-backports/multiverse i386 Packages [5,178 B] Get:28 http://us-east-1.ec2.archive.ubuntu.com precise-backports/main TranslationIndex [72 B] Get:29 http://us-east-1.ec2.archive.ubuntu.com precise-backports/multiverse TranslationIndex [72 B] Get:30 http://us-east-1.ec2.archive.ubuntu.com precise-backports/restricted TranslationIndex [70 B] Get:31 http://us-east-1.ec2.archive.ubuntu.com precise-backports/universe TranslationIndex [73 B] Hit http://us-east-1.ec2.archive.ubuntu.com precise/main Translation-en Get:32 http://us-east-1.ec2.archive.ubuntu.com precise/multiverse Translation-en [93.4 kB] Hit http://us-east-1.ec2.archive.ubuntu.com precise/universe Translation-en Hit http://us-east-1.ec2.archive.ubuntu.com precise-updates/main Translation-en Get:33 http://us-east-1.ec2.archive.ubuntu.com precise-updates/multiverse Translation-en [7,834 B] Hit http://us-east-1.ec2.archive.ubuntu.com precise-updates/universe Translation-en Get:34 http://us-east-1.ec2.archive.ubuntu.com precise-backports/main Translation-en [1,512 B] Get:35 http://us-east-1.ec2.archive.ubuntu.com precise-backports/multiverse Translation-en [4,043 B] Get:36 http://us-east-1.ec2.archive.ubuntu.com precise-backports/restricted Translation-en [14 B] Get:37 http://us-east-1.ec2.archive.ubuntu.com precise-backports/universe Translation-en [23.1 kB] Ign http://apt.puppetlabs.com precise/dependencies Translation-en_US Ign http://apt.puppetlabs.com precise/dependencies Translation-en Ign http://apt.puppetlabs.com precise/main Translation-en_US Ign http://apt.puppetlabs.com precise/main Translation-en Fetched 761 kB in 1s (629 kB/s) Reading package lists... Done Already up-to-date. Submodule 'modules/alternatives' (https://github.com/adrienthebo/puppet-alternatives.git) registered for path 'modules/alternatives' Submodule 'modules/archive' (https://github.com/camptocamp/puppet-archive.git) registered for path 'modules/archive' Submodule 'modules/duplicity' (https://github.com/oaeproject/puppet-duplicity.git) registered for path 'modules/duplicity' Submodule 'modules/iptables' (https://github.com/camptocamp/puppet-iptables.git) registered for path 'modules/iptables' Submodule 'modules/nfs' (https://github.com/sakaiproject/puppet-nfs.git) registered for path 'modules/nfs' Submodule 'modules/openvpn' (https://github.com/luxflux/puppet-openvpn.git) registered for path 'modules/openvpn' Submodule 'modules/rabbitmq' (https://github.com/puppetlabs/puppetlabs-rabbitmq.git) registered for path 'modules/rabbitmq' Submodule 'modules/stdlib' (https://github.com/puppetlabs/puppetlabs-stdlib) registered for path 'modules/stdlib' Submodule 'modules/sysctl' (https://github.com/duritong/puppet-sysctl.git) registered for path 'modules/sysctl' Submodule 'modules/ulimit' (https://github.com/arioch/puppet-ulimit.git) registered for path 'modules/ulimit' Submodule 'modules/vcsrepo' (https://github.com/puppetlabs/puppetlabs-vcsrepo) registered for path 'modules/vcsrepo' Cloning into 'modules/alternatives'... remote: Counting objects: 101, done. remote: Compressing objects: 100% (55/55), done. remote: Total 101 (delta 23), reused 91 (delta 16) Receiving objects: 100% (101/101), 13.24 KiB, done. Resolving deltas: 100% (23/23), done. Submodule path 'modules/alternatives': checked out '2d54ad4bab9f11761d3adfc8e25481d1471aa302' Cloning into 'modules/archive'... remote: Counting objects: 84, done. remote: Compressing objects: 100% (63/63), done. remote: Total 84 (delta 23), reused 57 (delta 3) Unpacking objects: 100% (84/84), done. Submodule path 'modules/archive': checked out '8ac38d47f941b7811385aeb278687d2ac5b2d498' Cloning into 'modules/duplicity'... remote: Counting objects: 357, done. remote: Compressing objects: 100% (168/168), done. remote: Total 357 (delta 137), reused 343 (delta 126) Receiving objects: 100% (357/357), 46.92 KiB, done. Resolving deltas: 100% (137/137), done. Submodule path 'modules/duplicity': checked out 'b7c48e6172b7d6914091fb21cb78e416cd075dd4' Cloning into 'modules/iptables'... remote: Counting objects: 338, done. remote: Compressing objects: 100% (168/168), done. remote: Total 338 (delta 98), reused 313 (delta 76) Receiving objects: 100% (338/338), 51.80 KiB, done. Resolving deltas: 100% (98/98), done. Submodule path 'modules/iptables': checked out '7d54c26dd255b6bd4071d43f6e1df24235f76d7c' Cloning into 'modules/nfs'... remote: Counting objects: 163, done. remote: Compressing objects: 100% (140/140), done. remote: Total 163 (delta 33), reused 140 (delta 19) Receiving objects: 100% (163/163), 20.01 KiB, done. Resolving deltas: 100% (33/33), done. Submodule path 'modules/nfs': checked out 'c087444964d01f0d7b51933f081fd59f521bb0b8' Cloning into 'modules/openvpn'... remote: Counting objects: 470, done. remote: Compressing objects: 100% (300/300), done. remote: Total 470 (delta 212), reused 400 (delta 158) Receiving objects: 100% (470/470), 87.36 KiB, done. Resolving deltas: 100% (212/212), done. Submodule path 'modules/openvpn': checked out '676eaa93f02cdea146f7154f74e67de625c4dbd2' Cloning into 'modules/rabbitmq'... remote: Counting objects: 1435, done. remote: Compressing objects: 100% (990/990), done. remote: Total 1435 (delta 566), reused 1135 (delta 315) Receiving objects: 100% (1435/1435), 429.92 KiB, done. Resolving deltas: 100% (566/566), done. Submodule path 'modules/rabbitmq': checked out '44bb086c96bf2e100f8ad149877bc6f2bce53a10' Cloning into 'modules/stdlib'... remote: Counting objects: 4350, done. remote: Compressing objects: 100% (2535/2535), done. remote: Total 4350 (delta 1658), reused 3918 (delta 1275) Receiving objects: 100% (4350/4350), 766.46 KiB, done. Resolving deltas: 100% (1658/1658), done. Submodule path 'modules/stdlib': checked out '4078a6ff44c3ea8c2a071eec3bd7b02dabc770d7' Cloning into 'modules/sysctl'... remote: Counting objects: 183, done. remote: Compressing objects: 100% (107/107), done. remote: Total 183 (delta 51), reused 160 (delta 32) Receiving objects: 100% (183/183), 19.39 KiB, done. Resolving deltas: 100% (51/51), done. Submodule path 'modules/sysctl': checked out 'f168534dc0fb2985aaf7b967a256ee113624bdd6' Cloning into 'modules/ulimit'... remote: Counting objects: 84, done. remote: Compressing objects: 100% (56/56), done. remote: Total 84 (delta 24), reused 72 (delta 18) Unpacking objects: 100% (84/84), done. Submodule path 'modules/ulimit': checked out 'c16fb2b1e18ad1deefb57e93ce8f651c4b46244f' Cloning into 'modules/vcsrepo'... remote: Counting objects: 1466, done. remote: Compressing objects: 100% (867/867), done. remote: Total 1466 (delta 531), reused 1253 (delta 333) Receiving objects: 100% (1466/1466), 188.54 KiB, done. Resolving deltas: 100% (531/531), done. Submodule path 'modules/vcsrepo': checked out 'b0f655163696aea40813db54fd830387bfc7e499' Applying puppet catalog. This might take a while (~30+ mins is not unreasonable) /vagrant/provisioning/vagrant/init.sh: line 68: puppet: command not found Got a 127 status code, which indicates the puppet catalog could not be properly applied. There are a couple of possible things you can do: - Run vagrant ssh and try running cd /vagrant && puppet apply --verbose --debug --modulepath environments/local/modules:modules:/etc/puppet/modules --certname dev --environment local --hiera_config provisioning/vagrant/hiera.yaml site.pp - If you're familiar with puppet try to analyze the output and tweak the puppet scripts - Hop onto #sakai on irc.freenode.org and ask if anyone has seen your error - Shoot an e-mail to oae-...@sakaiproject.org with the above output Since puppet didn't finish properly, we have to abort here On Nov 20, 2013, at 1:55 PM, Harry Wang <harryjw...@gmail.com> wrote: > Thanks, Branden. I think I did not explain my question clearly: I don't want > to use virtual machines via Vagrant and VirtualBox - in other word, there > won't be host and VM, only the server I want to setup. > > I want to configure an Ubuntu server. I want to know the exact workflow to do > that, e.g.: > > 1. login to Ubuntu via ssh > 2. clone Hilary, 3akai-ux and puppet-hilary and make sure they are all in the > same folder > 3. install puppet? > 4. run puppet command? what command to run? > > I hope to get more detailed instructions on 3 & 4, do I need to install > Vagrant on the server? > > You said "you can do the same thing as you did with vagrant, except you > use the "qa" environment and "qa0" certname instead of "local" and > "dev". " > > -- I don't understand this part - sorry about that - I don't know much about > Vagrant/Puppet (I searched for some puppet docs such as the one here: > http://docs.puppetlabs.com/guides/environment.html) > > Should I run "puppet agent --environment qa --certname qa0"? > > Thanks again for your help. > > Harry > > > On Nov 20, 2013, at 11:39 AM, Branden Visser <mrvis...@gmail.com> wrote: > >> Hi Harry, if you're setting up a machine for QA/test purposes for >> example, you can do the same thing as you did with vagrant, except you >> use the "qa" environment and "qa0" certname instead of "local" and >> "dev". Note that you won't have to clone Hilary, the "qa0" node >> configuration will handle all that for you. You just need to get >> puppet and the puppet-hilary code on the machine, then puppet can take >> it from there once you've run the appropriate command. >> >> Another way is to install the "puppet master" software on a dedicated >> machine, this is how we manage nodes. We have one machine that runs a >> server called the "puppet master" and it contains the puppet manifests >> (puppet-hilary repository). Then when we install a new node, we tell >> the node who the puppet master is and it automatically installs the >> required software based on its hostname (e.g., if the hostname is >> "qa0", it takes that node's configuration). >> >> Hope that helps, >> Branden >> >> On Wed, Nov 20, 2013 at 11:12 AM, Harry Wang <harryjw...@gmail.com> wrote: >>> Hi, >>> >>> I wonder whether anyone can provide some instructions on how to use OAE >>> puppet scripts without Vagrant. >>> >>> More specifically, assume I setup an Ubuntu server, locally log in, clone >>> Hilary, 3akai-ux and puppet-hilary and make sure they are all in the same >>> folder, then what should I do to start Puppet to configure OAE on the >>> server locally? >>> >>> I hope my question makes sense. >>> >>> Thanks for the help! >>> >>> Harry >>> >>> _______________________________________________ >>> oae-dev mailing list >>> oae-dev@collab.sakaiproject.org >>> http://collab.sakaiproject.org/mailman/listinfo/oae-dev > _______________________________________________ oae-dev mailing list oae-dev@collab.sakaiproject.org http://collab.sakaiproject.org/mailman/listinfo/oae-dev