Wednesday, May 27, 2015

How to setup App Factory 2.2.0 on a MacOS with puppet


 This is how to setup App Factory 2.2.0 on MacOS.

At Client Side (On your MacOS),

1 - First of all  you need to install puppet agent by following this guide https://docs.puppetlabs.com/guides/install_puppet/install_osx.html

2 - Then create a user as afpuppet and give him a password.

3 - Comment out the shell script that tries to generate a random number. This means you'll have to generate it by hand each time you run the sell script.

At the puppet master

Then install a puppet master following this guide - http://wso2.com/library/tutorials/2015/02/tutorial-step-by-step-guide-on-installing-and-configuring-wso2-app-factory-puppet-master-using-virtu/
Now do the following in puppet source in puppet master.

1 - Comment out the installed stuff in wso2base/manifests/packages.pp

2 - Fix the password problem. Meanwhile you need to comment out #managehome property also. Your wso2base/manifests/users.pp will look as follow.




You can generate the password from here - https://ask.puppetlabs.com/question/13940/creating-password-hashes-for-osx-109

4 - Fix the user group problem. Assign 'wheel' to the group

Now you are good to go.