Re: [Dev] Getting error in puppet integration to Mac OS X during tools installation using 'brew'

2014-11-13 Thread Aiyadurai Rajeevan
Hi All,

The above option doesn't resolve the issue, Even though i managed to find a
solution suggested in [1] . But this solution leads to maintainability
issues as highlighted by Udara.

Hence we are trying to achieve this using docker.

@Sajith - Referring to STRATOS-776
https://issues.apache.org/jira/browse/STRATOS-776 issue which was raised
regarding Stratos image is not starting, As per the comments it will be
fixed in 4.1.0-M2.  Is it possible to align the fix in 4.0.0?


[1]  https://forge.puppetlabs.com/gildas/homebrew

Thanks  Regards,
S.A.Rajeevan
Software Engineer WSO2 Inc
E-Mail: rajeev...@wso2.com | Mobile : +94776411636

On Thu, Nov 13, 2014 at 9:11 AM, Aiyadurai Rajeevan rajeev...@wso2.com
wrote:

 Hi Danuska/All,

 Since these all bundled with Ubuntu, We may suggest Mac OS users to
 manually install all these tools and use the puppet without any changes,
 Then the code would be as below.

 $packages = ['lsof','unzip','sysstat','telnet', 'git', 'less', 'tree', 'zip']

 package { $packages:
   ensure = installed,
 }


 Thanks  Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 E-Mail: rajeev...@wso2.com | Mobile : +94776411636

 On Thu, Nov 13, 2014 at 8:32 AM, Udara Liyanage ud...@wso2.com wrote:

 Hi Danushka,

 I don't think having a puppet master for Mac is a good option. Then in
 future you will have to have puppet masters for every platform which is not
 maintainable friendly. A change would have to duplicate in every where.
 Having a single puppet master for each environment must be the
 recommended approach.



 Touched, not typed. Erroneous words are a feature, not a typo.
 On Nov 13, 2014 6:05 AM, Danushka Fernando danush...@wso2.com wrote:

 Hi
 Sorry I misread first time. Few questions. If this is done for one time
 will it work after that ?
 Is there other things that breaks?

 If answers are yes and no the I would be fine with installing it
 manually for first time for mac since this is just dev setup.
 @Dimuthu : WDYT?

 But if it is not the case then we may need to have separate puppet
 master for mac. [1]

 [1] http://projects.puppetlabs.com/projects/1/wiki/puppet_mac_osx


 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Wed, Nov 12, 2014 at 6:20 PM, Aiyadurai Rajeevan rajeev...@wso2.com
 wrote:

 Hi All,

 We are in the process of integrating puppet scripts to Mac OS X, Where
 we have implementation to install list of tools to be installed by puppet
 script when executed, The puppet code looks like below.

 *$packages = ['lsof','unzip','sysstat','telnet', 'git', 'less', 'tree',
 'zip']*

 * package { $packages:*

  *ensure = installed,*

 *provider  = 'brew',*

 *}*


 Here, *$Packages* has the tools to be installed using the *brew*.

 When i execute this, it gives error as below,

 *Error: Failed to apply catalog: Parameter provider failed on
 Package[lsof]: Invalid package provider 'brew' at
 /home/rajeevan/appfactory/modules/wso2base/manifests/packages.pp:9*

 *Wrapped exception:*

 *Invalid package provider 'brew'*

 *Wrapped exception:*

 *Invalid package provider 'brew'*


 Then we executed the command - *brew install unzip* - just to ensure
 the unzip tool is getting installed, but it doesn't.

 google it and found a solution [1]

 *$ brew tap homebrew/dupes *

 *$ brew install unzip*

 This works nicely,

 But, As far as puppet concerned, How to do this in my above puppet
 script?

 Appreciate your view on this please.

 [1]
 http://apple.stackexchange.com/questions/149080/how-can-i-update-my-version-of-unzip-to-version-6-00-or-higher
 Thanks  Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 Lean . Enterprise . Middleware
 E-Mail: rajeev...@wso2.com | Mobile : +94776411636

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev



___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting error in puppet integration to Mac OS X during tools installation using 'brew'

2014-11-13 Thread Aiyadurai Rajeevan
+Sajith

Thanks  Regards,
S.A.Rajeevan
Software Engineer WSO2 Inc
E-Mail: rajeev...@wso2.com | Mobile : +94776411636

On Thu, Nov 13, 2014 at 1:52 PM, Aiyadurai Rajeevan rajeev...@wso2.com
wrote:

 Hi All,

 The above option doesn't resolve the issue, Even though i managed to find
 a solution suggested in [1] . But this solution leads to maintainability
 issues as highlighted by Udara.

 Hence we are trying to achieve this using docker.

 @Sajith - Referring to STRATOS-776
 https://issues.apache.org/jira/browse/STRATOS-776 issue which was
 raised regarding Stratos image is not starting, As per the comments it
 will be fixed in 4.1.0-M2.  Is it possible to align the fix in 4.0.0?


 [1]  https://forge.puppetlabs.com/gildas/homebrew

 Thanks  Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 E-Mail: rajeev...@wso2.com | Mobile : +94776411636

 On Thu, Nov 13, 2014 at 9:11 AM, Aiyadurai Rajeevan rajeev...@wso2.com
 wrote:

 Hi Danuska/All,

 Since these all bundled with Ubuntu, We may suggest Mac OS users to
 manually install all these tools and use the puppet without any changes,
 Then the code would be as below.

 $packages = ['lsof','unzip','sysstat','telnet', 'git', 'less', 'tree', 'zip']

 package { $packages:
   ensure = installed,
 }


 Thanks  Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 E-Mail: rajeev...@wso2.com | Mobile : +94776411636

 On Thu, Nov 13, 2014 at 8:32 AM, Udara Liyanage ud...@wso2.com wrote:

 Hi Danushka,

 I don't think having a puppet master for Mac is a good option. Then in
 future you will have to have puppet masters for every platform which is not
 maintainable friendly. A change would have to duplicate in every where.
 Having a single puppet master for each environment must be the
 recommended approach.



 Touched, not typed. Erroneous words are a feature, not a typo.
 On Nov 13, 2014 6:05 AM, Danushka Fernando danush...@wso2.com wrote:

 Hi
 Sorry I misread first time. Few questions. If this is done for one time
 will it work after that ?
 Is there other things that breaks?

 If answers are yes and no the I would be fine with installing it
 manually for first time for mac since this is just dev setup.
 @Dimuthu : WDYT?

 But if it is not the case then we may need to have separate puppet
 master for mac. [1]

 [1] http://projects.puppetlabs.com/projects/1/wiki/puppet_mac_osx


 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Wed, Nov 12, 2014 at 6:20 PM, Aiyadurai Rajeevan rajeev...@wso2.com
  wrote:

 Hi All,

 We are in the process of integrating puppet scripts to Mac OS X, Where
 we have implementation to install list of tools to be installed by puppet
 script when executed, The puppet code looks like below.

 *$packages = ['lsof','unzip','sysstat','telnet', 'git', 'less',
 'tree', 'zip']*

 * package { $packages:*

  *ensure = installed,*

 *provider  = 'brew',*

 *}*


 Here, *$Packages* has the tools to be installed using the *brew*.

 When i execute this, it gives error as below,

 *Error: Failed to apply catalog: Parameter provider failed on
 Package[lsof]: Invalid package provider 'brew' at
 /home/rajeevan/appfactory/modules/wso2base/manifests/packages.pp:9*

 *Wrapped exception:*

 *Invalid package provider 'brew'*

 *Wrapped exception:*

 *Invalid package provider 'brew'*


 Then we executed the command - *brew install unzip* - just to ensure
 the unzip tool is getting installed, but it doesn't.

 google it and found a solution [1]

 *$ brew tap homebrew/dupes *

 *$ brew install unzip*

 This works nicely,

 But, As far as puppet concerned, How to do this in my above puppet
 script?

 Appreciate your view on this please.

 [1]
 http://apple.stackexchange.com/questions/149080/how-can-i-update-my-version-of-unzip-to-version-6-00-or-higher
 Thanks  Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 Lean . Enterprise . Middleware
 E-Mail: rajeev...@wso2.com | Mobile : +94776411636

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting error in puppet integration to Mac OS X during tools installation using 'brew'

2014-11-13 Thread Imesh Gunaratne
Hi Rajeevan,

Can you please explain your goal bit further? Are you trying to setup an
AppFactory development environment using puppet on OS X?

If so it might not be ideal, better to use VMs or containers due to many
reasons:
- A desired OS can be used.
- Provides OS level isolation for each server.
- Entire environment can be wiped away and repeated without affecting the
host OS.
- Puppet may bring in an overhead.

At the present the most widely used tool for this purpose is Vagrant. A
simple Vagrant script could bring up an entire software stack in number of
hosts in minutes (depending on how software is installed).

Thanks

On Thu, Nov 13, 2014 at 1:55 PM, Aiyadurai Rajeevan rajeev...@wso2.com
wrote:

 +Sajith

 Thanks  Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 E-Mail: rajeev...@wso2.com | Mobile : +94776411636

 On Thu, Nov 13, 2014 at 1:52 PM, Aiyadurai Rajeevan rajeev...@wso2.com
 wrote:

 Hi All,

 The above option doesn't resolve the issue, Even though i managed to find
 a solution suggested in [1] . But this solution leads to maintainability
 issues as highlighted by Udara.

 Hence we are trying to achieve this using docker.

 @Sajith - Referring to STRATOS-776
 https://issues.apache.org/jira/browse/STRATOS-776 issue which was
 raised regarding Stratos image is not starting, As per the comments it
 will be fixed in 4.1.0-M2.  Is it possible to align the fix in 4.0.0?


 [1]  https://forge.puppetlabs.com/gildas/homebrew

 Thanks  Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 E-Mail: rajeev...@wso2.com | Mobile : +94776411636

 On Thu, Nov 13, 2014 at 9:11 AM, Aiyadurai Rajeevan rajeev...@wso2.com
 wrote:

 Hi Danuska/All,

 Since these all bundled with Ubuntu, We may suggest Mac OS users to
 manually install all these tools and use the puppet without any changes,
 Then the code would be as below.

 $packages = ['lsof','unzip','sysstat','telnet', 'git', 'less', 'tree', 
 'zip']

 package { $packages:
   ensure = installed,
 }


 Thanks  Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 E-Mail: rajeev...@wso2.com | Mobile : +94776411636

 On Thu, Nov 13, 2014 at 8:32 AM, Udara Liyanage ud...@wso2.com wrote:

 Hi Danushka,

 I don't think having a puppet master for Mac is a good option. Then in
 future you will have to have puppet masters for every platform which is not
 maintainable friendly. A change would have to duplicate in every where.
 Having a single puppet master for each environment must be the
 recommended approach.



 Touched, not typed. Erroneous words are a feature, not a typo.
 On Nov 13, 2014 6:05 AM, Danushka Fernando danush...@wso2.com
 wrote:

 Hi
 Sorry I misread first time. Few questions. If this is done for one
 time will it work after that ?
 Is there other things that breaks?

 If answers are yes and no the I would be fine with installing it
 manually for first time for mac since this is just dev setup.
 @Dimuthu : WDYT?

 But if it is not the case then we may need to have separate puppet
 master for mac. [1]

 [1] http://projects.puppetlabs.com/projects/1/wiki/puppet_mac_osx


 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Wed, Nov 12, 2014 at 6:20 PM, Aiyadurai Rajeevan 
 rajeev...@wso2.com wrote:

 Hi All,

 We are in the process of integrating puppet scripts to Mac OS X,
 Where we have implementation to install list of tools to be installed by
 puppet script when executed, The puppet code looks like below.

 *$packages = ['lsof','unzip','sysstat','telnet', 'git', 'less',
 'tree', 'zip']*

 * package { $packages:*

  *ensure = installed,*

 *provider  = 'brew',*

 *}*


 Here, *$Packages* has the tools to be installed using the *brew*.

 When i execute this, it gives error as below,

 *Error: Failed to apply catalog: Parameter provider failed on
 Package[lsof]: Invalid package provider 'brew' at
 /home/rajeevan/appfactory/modules/wso2base/manifests/packages.pp:9*

 *Wrapped exception:*

 *Invalid package provider 'brew'*

 *Wrapped exception:*

 *Invalid package provider 'brew'*


 Then we executed the command - *brew install unzip* - just to ensure
 the unzip tool is getting installed, but it doesn't.

 google it and found a solution [1]

 *$ brew tap homebrew/dupes *

 *$ brew install unzip*

 This works nicely,

 But, As far as puppet concerned, How to do this in my above puppet
 script?

 Appreciate your view on this please.

 [1]
 http://apple.stackexchange.com/questions/149080/how-can-i-update-my-version-of-unzip-to-version-6-00-or-higher
 Thanks  Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 Lean . Enterprise . Middleware
 E-Mail: rajeev...@wso2.com | Mobile : +94776411636

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev





 

Re: [Dev] Getting error in puppet integration to Mac OS X during tools installation using 'brew'

2014-11-13 Thread Aiyadurai Rajeevan
Hi Imesh,

Thanks, Yes we are trying to setup Appfactory Dev environment using puppet.
Agree with your suggestion.

Thanks  Regards,
S.A.Rajeevan
Software Engineer WSO2 Inc
E-Mail: rajeev...@wso2.com | Mobile : +94776411636

On Thu, Nov 13, 2014 at 11:01 PM, Imesh Gunaratne im...@wso2.com wrote:

 Hi Rajeevan,

 Can you please explain your goal bit further? Are you trying to setup an
 AppFactory development environment using puppet on OS X?

 If so it might not be ideal, better to use VMs or containers due to many
 reasons:
 - A desired OS can be used.
 - Provides OS level isolation for each server.
 - Entire environment can be wiped away and repeated without affecting the
 host OS.
 - Puppet may bring in an overhead.

 At the present the most widely used tool for this purpose is Vagrant. A
 simple Vagrant script could bring up an entire software stack in number of
 hosts in minutes (depending on how software is installed).

 Thanks

 On Thu, Nov 13, 2014 at 1:55 PM, Aiyadurai Rajeevan rajeev...@wso2.com
 wrote:

 +Sajith

 Thanks  Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 E-Mail: rajeev...@wso2.com | Mobile : +94776411636

 On Thu, Nov 13, 2014 at 1:52 PM, Aiyadurai Rajeevan rajeev...@wso2.com
 wrote:

 Hi All,

 The above option doesn't resolve the issue, Even though i managed to
 find a solution suggested in [1] . But this solution leads to
 maintainability issues as highlighted by Udara.

 Hence we are trying to achieve this using docker.

 @Sajith - Referring to STRATOS-776
 https://issues.apache.org/jira/browse/STRATOS-776 issue which was
 raised regarding Stratos image is not starting, As per the comments it
 will be fixed in 4.1.0-M2.  Is it possible to align the fix in 4.0.0?


 [1]  https://forge.puppetlabs.com/gildas/homebrew

 Thanks  Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 E-Mail: rajeev...@wso2.com | Mobile : +94776411636

 On Thu, Nov 13, 2014 at 9:11 AM, Aiyadurai Rajeevan rajeev...@wso2.com
 wrote:

 Hi Danuska/All,

 Since these all bundled with Ubuntu, We may suggest Mac OS users to
 manually install all these tools and use the puppet without any changes,
 Then the code would be as below.

 $packages = ['lsof','unzip','sysstat','telnet', 'git', 'less', 'tree', 
 'zip']

 package { $packages:
   ensure = installed,
 }


 Thanks  Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 E-Mail: rajeev...@wso2.com | Mobile : +94776411636

 On Thu, Nov 13, 2014 at 8:32 AM, Udara Liyanage ud...@wso2.com wrote:

 Hi Danushka,

 I don't think having a puppet master for Mac is a good option. Then in
 future you will have to have puppet masters for every platform which is 
 not
 maintainable friendly. A change would have to duplicate in every where.
 Having a single puppet master for each environment must be the
 recommended approach.



 Touched, not typed. Erroneous words are a feature, not a typo.
 On Nov 13, 2014 6:05 AM, Danushka Fernando danush...@wso2.com
 wrote:

 Hi
 Sorry I misread first time. Few questions. If this is done for one
 time will it work after that ?
 Is there other things that breaks?

 If answers are yes and no the I would be fine with installing it
 manually for first time for mac since this is just dev setup.
 @Dimuthu : WDYT?

 But if it is not the case then we may need to have separate puppet
 master for mac. [1]

 [1] http://projects.puppetlabs.com/projects/1/wiki/puppet_mac_osx


 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Wed, Nov 12, 2014 at 6:20 PM, Aiyadurai Rajeevan 
 rajeev...@wso2.com wrote:

 Hi All,

 We are in the process of integrating puppet scripts to Mac OS X,
 Where we have implementation to install list of tools to be installed by
 puppet script when executed, The puppet code looks like below.

 *$packages = ['lsof','unzip','sysstat','telnet', 'git', 'less',
 'tree', 'zip']*

 * package { $packages:*

  *ensure = installed,*

 *provider  = 'brew',*

 *}*


 Here, *$Packages* has the tools to be installed using the *brew*.

 When i execute this, it gives error as below,

 *Error: Failed to apply catalog: Parameter provider failed on
 Package[lsof]: Invalid package provider 'brew' at
 /home/rajeevan/appfactory/modules/wso2base/manifests/packages.pp:9*

 *Wrapped exception:*

 *Invalid package provider 'brew'*

 *Wrapped exception:*

 *Invalid package provider 'brew'*


 Then we executed the command - *brew install unzip* - just to
 ensure the unzip tool is getting installed, but it doesn't.

 google it and found a solution [1]

 *$ brew tap homebrew/dupes *

 *$ brew install unzip*

 This works nicely,

 But, As far as puppet concerned, How to do this in my above puppet
 script?

 Appreciate your view on this please.

 [1]
 http://apple.stackexchange.com/questions/149080/how-can-i-update-my-version-of-unzip-to-version-6-00-or-higher
 Thanks  Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 Lean . Enterprise . Middleware
 

[Dev] Getting error in puppet integration to Mac OS X during tools installation using 'brew'

2014-11-12 Thread Aiyadurai Rajeevan
Hi All,

We are in the process of integrating puppet scripts to Mac OS X, Where we
have implementation to install list of tools to be installed by puppet
script when executed, The puppet code looks like below.

*$packages = ['lsof','unzip','sysstat','telnet', 'git', 'less', 'tree',
'zip']*

* package { $packages:*

 *ensure = installed,*

*provider  = 'brew',*

*}*


Here, *$Packages* has the tools to be installed using the *brew*.

When i execute this, it gives error as below,

*Error: Failed to apply catalog: Parameter provider failed on
Package[lsof]: Invalid package provider 'brew' at
/home/rajeevan/appfactory/modules/wso2base/manifests/packages.pp:9*

*Wrapped exception:*

*Invalid package provider 'brew'*

*Wrapped exception:*

*Invalid package provider 'brew'*


Then we executed the command - *brew install unzip* - just to ensure the
unzip tool is getting installed, but it doesn't.

google it and found a solution [1]

*$ brew tap homebrew/dupes *

*$ brew install unzip*

This works nicely,

But, As far as puppet concerned, How to do this in my above puppet script?

Appreciate your view on this please.

[1]
http://apple.stackexchange.com/questions/149080/how-can-i-update-my-version-of-unzip-to-version-6-00-or-higher
Thanks  Regards,
S.A.Rajeevan
Software Engineer WSO2 Inc
Lean . Enterprise . Middleware
E-Mail: rajeev...@wso2.com | Mobile : +94776411636
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting error in puppet integration to Mac OS X during tools installation using 'brew'

2014-11-12 Thread Danushka Fernando
I think unzip is coming with zip package. Just install zip and check
whether unzip command works.

Thanks  Regards
Danushka Fernando
Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Wed, Nov 12, 2014 at 6:20 PM, Aiyadurai Rajeevan rajeev...@wso2.com
wrote:

 Hi All,

 We are in the process of integrating puppet scripts to Mac OS X, Where we
 have implementation to install list of tools to be installed by puppet
 script when executed, The puppet code looks like below.

 *$packages = ['lsof','unzip','sysstat','telnet', 'git', 'less', 'tree',
 'zip']*

 * package { $packages:*

  *ensure = installed,*

 *provider  = 'brew',*

 *}*


 Here, *$Packages* has the tools to be installed using the *brew*.

 When i execute this, it gives error as below,

 *Error: Failed to apply catalog: Parameter provider failed on
 Package[lsof]: Invalid package provider 'brew' at
 /home/rajeevan/appfactory/modules/wso2base/manifests/packages.pp:9*

 *Wrapped exception:*

 *Invalid package provider 'brew'*

 *Wrapped exception:*

 *Invalid package provider 'brew'*


 Then we executed the command - *brew install unzip* - just to ensure the
 unzip tool is getting installed, but it doesn't.

 google it and found a solution [1]

 *$ brew tap homebrew/dupes *

 *$ brew install unzip*

 This works nicely,

 But, As far as puppet concerned, How to do this in my above puppet script?

 Appreciate your view on this please.

 [1]
 http://apple.stackexchange.com/questions/149080/how-can-i-update-my-version-of-unzip-to-version-6-00-or-higher
 Thanks  Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 Lean . Enterprise . Middleware
 E-Mail: rajeev...@wso2.com | Mobile : +94776411636

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting error in puppet integration to Mac OS X during tools installation using 'brew'

2014-11-12 Thread Mahesh Chinthaka
Hi,
 why do you want to install unzip via brew ?? AFAIK unzip comes with mac OS
by default.

On Wed, Nov 12, 2014 at 6:22 PM, Danushka Fernando danush...@wso2.com
wrote:

 I think unzip is coming with zip package. Just install zip and check
 whether unzip command works.

 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Wed, Nov 12, 2014 at 6:20 PM, Aiyadurai Rajeevan rajeev...@wso2.com
 wrote:

 Hi All,

 We are in the process of integrating puppet scripts to Mac OS X, Where we
 have implementation to install list of tools to be installed by puppet
 script when executed, The puppet code looks like below.

 *$packages = ['lsof','unzip','sysstat','telnet', 'git', 'less', 'tree',
 'zip']*

 * package { $packages:*

  *ensure = installed,*

 *provider  = 'brew',*

 *}*


 Here, *$Packages* has the tools to be installed using the *brew*.

 When i execute this, it gives error as below,

 *Error: Failed to apply catalog: Parameter provider failed on
 Package[lsof]: Invalid package provider 'brew' at
 /home/rajeevan/appfactory/modules/wso2base/manifests/packages.pp:9*

 *Wrapped exception:*

 *Invalid package provider 'brew'*

 *Wrapped exception:*

 *Invalid package provider 'brew'*


 Then we executed the command - *brew install unzip* - just to ensure the
 unzip tool is getting installed, but it doesn't.

 google it and found a solution [1]

 *$ brew tap homebrew/dupes *

 *$ brew install unzip*

 This works nicely,

 But, As far as puppet concerned, How to do this in my above puppet script?

 Appreciate your view on this please.

 [1]
 http://apple.stackexchange.com/questions/149080/how-can-i-update-my-version-of-unzip-to-version-6-00-or-higher
 Thanks  Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 Lean . Enterprise . Middleware
 E-Mail: rajeev...@wso2.com | Mobile : +94776411636

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
*Mahesh Chinthaka Vidanagama* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 63 63 083 | Work: +94 112 145 345
Email: mahe...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting error in puppet integration to Mac OS X during tools installation using 'brew'

2014-11-12 Thread Pirinthapan Mahendran
Hi Mahesh,

When I setting up AF, I had to install unzip.

Thanks.



Mahendran Pirinthapan
Software Engineer | WSO2 Inc.
Mobile +94772378732.

On Wed, Nov 12, 2014 at 10:51 PM, Mahesh Chinthaka mahe...@wso2.com wrote:

 Hi,
  why do you want to install unzip via brew ?? AFAIK unzip comes with mac
 OS by default.

 On Wed, Nov 12, 2014 at 6:22 PM, Danushka Fernando danush...@wso2.com
 wrote:

 I think unzip is coming with zip package. Just install zip and check
 whether unzip command works.

 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Wed, Nov 12, 2014 at 6:20 PM, Aiyadurai Rajeevan rajeev...@wso2.com
 wrote:

 Hi All,

 We are in the process of integrating puppet scripts to Mac OS X, Where
 we have implementation to install list of tools to be installed by puppet
 script when executed, The puppet code looks like below.

 *$packages = ['lsof','unzip','sysstat','telnet', 'git', 'less', 'tree',
 'zip']*

 * package { $packages:*

  *ensure = installed,*

 *provider  = 'brew',*

 *}*


 Here, *$Packages* has the tools to be installed using the *brew*.

 When i execute this, it gives error as below,

 *Error: Failed to apply catalog: Parameter provider failed on
 Package[lsof]: Invalid package provider 'brew' at
 /home/rajeevan/appfactory/modules/wso2base/manifests/packages.pp:9*

 *Wrapped exception:*

 *Invalid package provider 'brew'*

 *Wrapped exception:*

 *Invalid package provider 'brew'*


 Then we executed the command - *brew install unzip* - just to ensure
 the unzip tool is getting installed, but it doesn't.

 google it and found a solution [1]

 *$ brew tap homebrew/dupes *

 *$ brew install unzip*

 This works nicely,

 But, As far as puppet concerned, How to do this in my above puppet
 script?

 Appreciate your view on this please.

 [1]
 http://apple.stackexchange.com/questions/149080/how-can-i-update-my-version-of-unzip-to-version-6-00-or-higher
 Thanks  Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 Lean . Enterprise . Middleware
 E-Mail: rajeev...@wso2.com | Mobile : +94776411636

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Mahesh Chinthaka Vidanagama* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 63 63 083 | Work: +94 112 145 345
 Email: mahe...@wso2.com | Web: www.wso2.com

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting error in puppet integration to Mac OS X during tools installation using 'brew'

2014-11-12 Thread Dimuthu Leelarathne
Hi all,

If puppet is giving all of these problems on Mac, shall we check whether it
is feasible to use Docker instance of Ubuntu with puppet in it and then run
our scripts?

thanks,
dimuthu


On Thu, Nov 13, 2014 at 12:40 AM, Pirinthapan Mahendran 
pirintha...@wso2.com wrote:

 Hi Mahesh,

 When I setting up AF, I had to install unzip.

 Thanks.



 Mahendran Pirinthapan
 Software Engineer | WSO2 Inc.
 Mobile +94772378732.

 On Wed, Nov 12, 2014 at 10:51 PM, Mahesh Chinthaka mahe...@wso2.com
 wrote:

 Hi,
  why do you want to install unzip via brew ?? AFAIK unzip comes with mac
 OS by default.

 On Wed, Nov 12, 2014 at 6:22 PM, Danushka Fernando danush...@wso2.com
 wrote:

 I think unzip is coming with zip package. Just install zip and check
 whether unzip command works.

 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Wed, Nov 12, 2014 at 6:20 PM, Aiyadurai Rajeevan rajeev...@wso2.com
 wrote:

 Hi All,

 We are in the process of integrating puppet scripts to Mac OS X, Where
 we have implementation to install list of tools to be installed by puppet
 script when executed, The puppet code looks like below.

 *$packages = ['lsof','unzip','sysstat','telnet', 'git', 'less', 'tree',
 'zip']*

 * package { $packages:*

  *ensure = installed,*

 *provider  = 'brew',*

 *}*


 Here, *$Packages* has the tools to be installed using the *brew*.

 When i execute this, it gives error as below,

 *Error: Failed to apply catalog: Parameter provider failed on
 Package[lsof]: Invalid package provider 'brew' at
 /home/rajeevan/appfactory/modules/wso2base/manifests/packages.pp:9*

 *Wrapped exception:*

 *Invalid package provider 'brew'*

 *Wrapped exception:*

 *Invalid package provider 'brew'*


 Then we executed the command - *brew install unzip* - just to ensure
 the unzip tool is getting installed, but it doesn't.

 google it and found a solution [1]

 *$ brew tap homebrew/dupes *

 *$ brew install unzip*

 This works nicely,

 But, As far as puppet concerned, How to do this in my above puppet
 script?

 Appreciate your view on this please.

 [1]
 http://apple.stackexchange.com/questions/149080/how-can-i-update-my-version-of-unzip-to-version-6-00-or-higher
 Thanks  Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 Lean . Enterprise . Middleware
 E-Mail: rajeev...@wso2.com | Mobile : +94776411636

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Mahesh Chinthaka Vidanagama* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 63 63 083 | Work: +94 112 145 345
 Email: mahe...@wso2.com | Web: www.wso2.com

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Dimuthu Leelarathne
Architect  Product Lead of App Factory

WSO2, Inc. (http://wso2.com)
email: dimut...@wso2.com
Mobile : 0773661935

Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting error in puppet integration to Mac OS X during tools installation using 'brew'

2014-11-12 Thread Danushka Fernando
Hi
Sorry I misread first time. Few questions. If this is done for one time
will it work after that ?
Is there other things that breaks?

If answers are yes and no the I would be fine with installing it manually
for first time for mac since this is just dev setup.
@Dimuthu : WDYT?

But if it is not the case then we may need to have separate puppet master
for mac. [1]

[1] http://projects.puppetlabs.com/projects/1/wiki/puppet_mac_osx


Thanks  Regards
Danushka Fernando
Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Wed, Nov 12, 2014 at 6:20 PM, Aiyadurai Rajeevan rajeev...@wso2.com
wrote:

 Hi All,

 We are in the process of integrating puppet scripts to Mac OS X, Where we
 have implementation to install list of tools to be installed by puppet
 script when executed, The puppet code looks like below.

 *$packages = ['lsof','unzip','sysstat','telnet', 'git', 'less', 'tree',
 'zip']*

 * package { $packages:*

  *ensure = installed,*

 *provider  = 'brew',*

 *}*


 Here, *$Packages* has the tools to be installed using the *brew*.

 When i execute this, it gives error as below,

 *Error: Failed to apply catalog: Parameter provider failed on
 Package[lsof]: Invalid package provider 'brew' at
 /home/rajeevan/appfactory/modules/wso2base/manifests/packages.pp:9*

 *Wrapped exception:*

 *Invalid package provider 'brew'*

 *Wrapped exception:*

 *Invalid package provider 'brew'*


 Then we executed the command - *brew install unzip* - just to ensure the
 unzip tool is getting installed, but it doesn't.

 google it and found a solution [1]

 *$ brew tap homebrew/dupes *

 *$ brew install unzip*

 This works nicely,

 But, As far as puppet concerned, How to do this in my above puppet script?

 Appreciate your view on this please.

 [1]
 http://apple.stackexchange.com/questions/149080/how-can-i-update-my-version-of-unzip-to-version-6-00-or-higher
 Thanks  Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 Lean . Enterprise . Middleware
 E-Mail: rajeev...@wso2.com | Mobile : +94776411636

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting error in puppet integration to Mac OS X during tools installation using 'brew'

2014-11-12 Thread Thilina Piyasundara
On Thu, Nov 13, 2014 at 5:45 AM, Dimuthu Leelarathne dimut...@wso2.com
wrote:

 Hi all,

 If puppet is giving all of these problems on Mac, shall we check whether
 it is feasible to use Docker instance of Ubuntu with puppet in it and then
 run our scripts?


​
Don't make things much complex. Use a Ubuntu 12.04 virtual machine.
​Docker + puppet is something that need more effort to do.​

​


 thanks,
 dimuthu


 On Thu, Nov 13, 2014 at 12:40 AM, Pirinthapan Mahendran 
 pirintha...@wso2.com wrote:

 Hi Mahesh,

 When I setting up AF, I had to install unzip.

 Thanks.



 Mahendran Pirinthapan
 Software Engineer | WSO2 Inc.
 Mobile +94772378732.

 On Wed, Nov 12, 2014 at 10:51 PM, Mahesh Chinthaka mahe...@wso2.com
 wrote:

 Hi,
  why do you want to install unzip via brew ?? AFAIK unzip comes with mac
 OS by default.

 On Wed, Nov 12, 2014 at 6:22 PM, Danushka Fernando danush...@wso2.com
 wrote:

 I think unzip is coming with zip package. Just install zip and check
 whether unzip command works.

 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Wed, Nov 12, 2014 at 6:20 PM, Aiyadurai Rajeevan rajeev...@wso2.com
  wrote:

 Hi All,

 We are in the process of integrating puppet scripts to Mac OS X, Where
 we have implementation to install list of tools to be installed by puppet
 script when executed, The puppet code looks like below.

 *$packages = ['lsof','unzip','sysstat','telnet', 'git', 'less',
 'tree', 'zip']*

 * package { $packages:*

  *ensure = installed,*

 *provider  = 'brew',*

 *}*


 Here, *$Packages* has the tools to be installed using the *brew*.

 When i execute this, it gives error as below,

 *Error: Failed to apply catalog: Parameter provider failed on
 Package[lsof]: Invalid package provider 'brew' at
 /home/rajeevan/appfactory/modules/wso2base/manifests/packages.pp:9*

 *Wrapped exception:*

 *Invalid package provider 'brew'*

 *Wrapped exception:*

 *Invalid package provider 'brew'*


 Then we executed the command - *brew install unzip* - just to ensure
 the unzip tool is getting installed, but it doesn't.

 google it and found a solution [1]

 *$ brew tap homebrew/dupes *

 *$ brew install unzip*

 This works nicely,

 But, As far as puppet concerned, How to do this in my above puppet
 script?

 Appreciate your view on this please.

 [1]
 http://apple.stackexchange.com/questions/149080/how-can-i-update-my-version-of-unzip-to-version-6-00-or-higher
 Thanks  Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 Lean . Enterprise . Middleware
 E-Mail: rajeev...@wso2.com | Mobile : +94776411636

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Mahesh Chinthaka Vidanagama* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 63 63 083 | Work: +94 112 145 345
 Email: mahe...@wso2.com | Web: www.wso2.com

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Dimuthu Leelarathne
 Architect  Product Lead of App Factory

 WSO2, Inc. (http://wso2.com)
 email: dimut...@wso2.com
 Mobile : 0773661935

 Lean . Enterprise . Middleware

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting error in puppet integration to Mac OS X during tools installation using 'brew'

2014-11-12 Thread Udara Liyanage
Hi Danushka,

I don't think having a puppet master for Mac is a good option. Then in
future you will have to have puppet masters for every platform which is not
maintainable friendly. A change would have to duplicate in every where.
Having a single puppet master for each environment must be the recommended
approach.



Touched, not typed. Erroneous words are a feature, not a typo.
On Nov 13, 2014 6:05 AM, Danushka Fernando danush...@wso2.com wrote:

 Hi
 Sorry I misread first time. Few questions. If this is done for one time
 will it work after that ?
 Is there other things that breaks?

 If answers are yes and no the I would be fine with installing it manually
 for first time for mac since this is just dev setup.
 @Dimuthu : WDYT?

 But if it is not the case then we may need to have separate puppet master
 for mac. [1]

 [1] http://projects.puppetlabs.com/projects/1/wiki/puppet_mac_osx


 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Wed, Nov 12, 2014 at 6:20 PM, Aiyadurai Rajeevan rajeev...@wso2.com
 wrote:

 Hi All,

 We are in the process of integrating puppet scripts to Mac OS X, Where we
 have implementation to install list of tools to be installed by puppet
 script when executed, The puppet code looks like below.

 *$packages = ['lsof','unzip','sysstat','telnet', 'git', 'less', 'tree',
 'zip']*

 * package { $packages:*

  *ensure = installed,*

 *provider  = 'brew',*

 *}*


 Here, *$Packages* has the tools to be installed using the *brew*.

 When i execute this, it gives error as below,

 *Error: Failed to apply catalog: Parameter provider failed on
 Package[lsof]: Invalid package provider 'brew' at
 /home/rajeevan/appfactory/modules/wso2base/manifests/packages.pp:9*

 *Wrapped exception:*

 *Invalid package provider 'brew'*

 *Wrapped exception:*

 *Invalid package provider 'brew'*


 Then we executed the command - *brew install unzip* - just to ensure the
 unzip tool is getting installed, but it doesn't.

 google it and found a solution [1]

 *$ brew tap homebrew/dupes *

 *$ brew install unzip*

 This works nicely,

 But, As far as puppet concerned, How to do this in my above puppet script?

 Appreciate your view on this please.

 [1]
 http://apple.stackexchange.com/questions/149080/how-can-i-update-my-version-of-unzip-to-version-6-00-or-higher
 Thanks  Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 Lean . Enterprise . Middleware
 E-Mail: rajeev...@wso2.com | Mobile : +94776411636

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting error in puppet integration to Mac OS X during tools installation using 'brew'

2014-11-12 Thread Aiyadurai Rajeevan
Hi Danuska/All,

Since these all bundled with Ubuntu, We may suggest Mac OS users to
manually install all these tools and use the puppet without any changes,
Then the code would be as below.

$packages = ['lsof','unzip','sysstat','telnet', 'git', 'less', 'tree', 'zip']

package { $packages:
  ensure = installed,
}


Thanks  Regards,
S.A.Rajeevan
Software Engineer WSO2 Inc
E-Mail: rajeev...@wso2.com | Mobile : +94776411636

On Thu, Nov 13, 2014 at 8:32 AM, Udara Liyanage ud...@wso2.com wrote:

 Hi Danushka,

 I don't think having a puppet master for Mac is a good option. Then in
 future you will have to have puppet masters for every platform which is not
 maintainable friendly. A change would have to duplicate in every where.
 Having a single puppet master for each environment must be the recommended
 approach.



 Touched, not typed. Erroneous words are a feature, not a typo.
 On Nov 13, 2014 6:05 AM, Danushka Fernando danush...@wso2.com wrote:

 Hi
 Sorry I misread first time. Few questions. If this is done for one time
 will it work after that ?
 Is there other things that breaks?

 If answers are yes and no the I would be fine with installing it manually
 for first time for mac since this is just dev setup.
 @Dimuthu : WDYT?

 But if it is not the case then we may need to have separate puppet master
 for mac. [1]

 [1] http://projects.puppetlabs.com/projects/1/wiki/puppet_mac_osx


 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Wed, Nov 12, 2014 at 6:20 PM, Aiyadurai Rajeevan rajeev...@wso2.com
 wrote:

 Hi All,

 We are in the process of integrating puppet scripts to Mac OS X, Where
 we have implementation to install list of tools to be installed by puppet
 script when executed, The puppet code looks like below.

 *$packages = ['lsof','unzip','sysstat','telnet', 'git', 'less', 'tree',
 'zip']*

 * package { $packages:*

  *ensure = installed,*

 *provider  = 'brew',*

 *}*


 Here, *$Packages* has the tools to be installed using the *brew*.

 When i execute this, it gives error as below,

 *Error: Failed to apply catalog: Parameter provider failed on
 Package[lsof]: Invalid package provider 'brew' at
 /home/rajeevan/appfactory/modules/wso2base/manifests/packages.pp:9*

 *Wrapped exception:*

 *Invalid package provider 'brew'*

 *Wrapped exception:*

 *Invalid package provider 'brew'*


 Then we executed the command - *brew install unzip* - just to ensure
 the unzip tool is getting installed, but it doesn't.

 google it and found a solution [1]

 *$ brew tap homebrew/dupes *

 *$ brew install unzip*

 This works nicely,

 But, As far as puppet concerned, How to do this in my above puppet
 script?

 Appreciate your view on this please.

 [1]
 http://apple.stackexchange.com/questions/149080/how-can-i-update-my-version-of-unzip-to-version-6-00-or-higher
 Thanks  Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 Lean . Enterprise . Middleware
 E-Mail: rajeev...@wso2.com | Mobile : +94776411636

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev