Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vagrant doesn't actually run manifests correctly #2

Open
benlangfeld opened this issue Dec 31, 2012 · 9 comments
Open

Vagrant doesn't actually run manifests correctly #2

benlangfeld opened this issue Dec 31, 2012 · 9 comments
Labels

Comments

@benlangfeld
Copy link
Member

Vagrant config added in ad010cb doesn't seem to actually trigger installing any openshift components. I'm not sure what I have to do other than instructing puppet to use the broker.pp manifest to actually get it to do anything. @bklang or @vindir, any ideas?

@bklang
Copy link
Member

bklang commented Jan 1, 2013

We had been testing this in a standalone VM, not using Vagrant, so that configuration is not tested. That said, it's probably a small tweak to make it work with Vagrant. I'll take a look.

@bklang
Copy link
Member

bklang commented Jan 1, 2013

Some more thoughts on this:

  • I think we'll need to release this module to Puppet Forge so we can install it per Puppet instructions.
  • I've looked at something like librarian-puppet to provide a single Puppetfile, but it seems unmaintained and broken. This problem is mostly solved by having the module itself list its own dependencies, and be installed as described above. The downside is that there does not appear to be a provision to install Puppet modules from Git or even a source directory without something like librarian-puppet.
  • Because of module dependencies and Puppet module paths I'm not sure it makes sense to keep a Vagrantfile in this repo. It might make more sense to separate it out to a DevBox-style repo, but I'm open to other ideas.

@benlangfeld
Copy link
Member Author

So the point is that there should be an easy way to test this setup. Tests for puppet-openshift should be in the puppet-openshift repo. The point is not to provide a simple way to bootstrap the released module, but to test the module while working on it directly. Chef can simply use cookbooks from local disk. I don't understand why Puppet would not allow using the module unpackaged; how are you doing it manually?

@bklang
Copy link
Member

bklang commented Jan 1, 2013

The need for puppet install was to satisfy this module's dependencies. Perhaps we can script around that with Vagrant. You can apply a module directly from disk once the dependencies are available to Puppet.

@anderssv
Copy link

anderssv commented Feb 6, 2013

Would be cool if this worked, but there is no solution yet? Just added some basic instantiation in broker.pp, but I always keep running into issues with templates and other stuff. Also tried using the module with other setup in Vagrant.

Am I correct to assume that the only way to get this working right now is by provisioning through a puppet-master?

@bklang
Copy link
Member

bklang commented Feb 6, 2013

It is possible to deploy this with a puppetmaster, but that is not how we were using it. We were simply creating a manifest on the node in question and using "puppet apply" to run the changes. It should work fine with Vagrant, it's just that no one has spent the time to document the integration or even to attempt it.

@anderssv
Copy link

anderssv commented Feb 6, 2013

Doh... Then I'm a bit lost... New to Puppet as well as OpenShift. :) Would you mind sketching up how you use it? Do you use puppet module install to install the module? What is the full apply command?

@anderssv
Copy link

anderssv commented Feb 7, 2013

I'm trying to get stuff working. You can see the Vagrant setup I'm running now at https://github.com/anderssv/puppet-vagrant-playground . It's far from ideal as I use two VMs (one puppetmaster) and so far have only looked into the broker. It should be as easy as doing a clone and running ./start.sh to get Vagrant running and testing on your computer.

I would really like to get this stuff working, but I had to add some requires to get it to do some stuff. Right now I seem to struggle with the MongoDB install. I disabled 10gen (which I havn't the faintest idea what is) because it seemed to conflict with dependencies specified in some of the packages of Openshift itself.

I hope creating a "out of the box" setup will help debugging and collaborating around the scripts, so if there's something I can help with or change let me know.

@anderssv
Copy link

anderssv commented Feb 8, 2013

The broker node now installs all the Puppet stuff. I still have some errors with selinux not beeing active, but I figured out a lot of other dependencies. Still not getting stuff working on the broker, but at least some progress. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants