Return-Path: X-Original-To: apmail-stratos-dev-archive@minotaur.apache.org Delivered-To: apmail-stratos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 89B5010CCA for ; Wed, 2 Apr 2014 16:18:12 +0000 (UTC) Received: (qmail 85765 invoked by uid 500); 2 Apr 2014 16:18:11 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 85730 invoked by uid 500); 2 Apr 2014 16:18:10 -0000 Mailing-List: contact dev-help@stratos.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stratos.incubator.apache.org Delivered-To: mailing list dev@stratos.incubator.apache.org Received: (qmail 85722 invoked by uid 99); 2 Apr 2014 16:18:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2014 16:18:10 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lahirus@wso2.com designates 209.85.216.42 as permitted sender) Received: from [209.85.216.42] (HELO mail-qa0-f42.google.com) (209.85.216.42) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2014 16:18:05 +0000 Received: by mail-qa0-f42.google.com with SMTP id k15so393439qaq.15 for ; Wed, 02 Apr 2014 09:17:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wso2.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=0K+JlV45bVQLtDZGBuuSR/8ztV9r5/lZCj3mSe39SDk=; b=SnqH2wPsbeA8wiPm/Ru86sdMTf2//zpHGAUfjieMc/mxmSc6aAASiLOZru4CcrzaXk skGmwPHw1sRZ+1Cp8DzdQF2yJbM418UCp+s7EajRcbiB7ZmS4y8b2N4XlN6R3sf0zb4y MAuDj1YhxK4GcvMJA3wH4s7lmqj68L7qAMGbw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=0K+JlV45bVQLtDZGBuuSR/8ztV9r5/lZCj3mSe39SDk=; b=fSyk39rBgonnxxey0BBwz41csOA5K/6+fiSLSIYapTkw3d04S/GNkP+AoLsSNIDebp uhp/0F6cIY9J0kBidkZn8QDo8DIyF6rcY+h8HgUuHbr2y2vrVeFuLdAc9YkqMsHzwP/t CpBZtiHQ+NK1b8LHOvqzyMDUmB8+fNx30ejHwlJMj/ZUzdQKs/0zEK8yworCpioyQ98m LlMZmpKTofcvShvheIXYNnjVquSJT5HSZS5PFMj7qVFBOC9ZI9tGHeCzkIjN+q1st1Gz jIK3s/7KySwbFskqHxIdIrJwNhuffI1Fc/vEiV1Qwt30BUB9hQJ/y7/OStI9oh8gexiW m3uw== X-Gm-Message-State: ALoCoQkGxDk9djZ4JBSxVifMxK/vdI5Pu1CIharc1+qDq25xHpsIOayZlS6D85NKY8OteUVKL9EB X-Received: by 10.229.28.2 with SMTP id k2mr1804815qcc.16.1396455462652; Wed, 02 Apr 2014 09:17:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.96.199.135 with HTTP; Wed, 2 Apr 2014 09:17:12 -0700 (PDT) In-Reply-To: References: From: Lahiru Sandaruwan Date: Wed, 2 Apr 2014 09:17:12 -0700 Message-ID: Subject: Re: "4.0.0 Creating a Cartridge on OpenStack or EC2" does not mention about "stratos_facts.rb" To: "dev@stratos.incubator.apache.org" Content-Type: multipart/alternative; boundary=001a1133bbd0cbe41d04f6119f21 X-Virus-Checked: Checked by ClamAV on apache.org --001a1133bbd0cbe41d04f6119f21 Content-Type: text/plain; charset=ISO-8859-1 It seems not. I'm using a script used by Manula for some other deployment. But i cannot find that string in original one either... Here is the complete script i'm using, class php ($syslog="", $docroot="/var/www/html", $samlalias="") { $packages = [ 'httpd', 'openssl.x86_64', 'mod_ssl.x86_64', 'php', 'php-adodb.noarch', 'php-dba.x86_64', 'php-gd.x86_64', 'php-imap.x86_64', 'php-ldap.x86_64', 'php-mcrypt.x86_64', 'php-mysql.x86_64', 'php-pear.noarch', 'php-xml.x86_64', 'php-xmlrpc.x86_64', 'php.x86_64', 'git-all.noarch', ] # file { '/etc/apt/apt.conf.d/90forceyes': # ensure => present, # source => 'puppet:///modules/php/90forceyes'; # } # exec { 'update-apt': # path => ['/bin', '/usr/bin'], # command => 'apt-get update > /dev/null 2>&1 &', # require => File['/etc/apt/apt.conf.d/90forceyes'], # } package { $packages: ensure => installed, } # Apache file { '/etc/httpd/conf/httpd.conf': owner => 'root', group => 'root', mode => '0775', notify => Service['httpd'], content => template('php/httpd/httpd.conf.erb'), require => Package['httpd']; # # '/etc/apache2/sites-available/default': # owner => 'root', # group => 'root', # mode => '0775', # notify => Service['apache2'], # content => template('php/apache2/sites-available/default.erb'), # require => Package['apache2']; # # '/etc/apache2/sites-available/default-ssl': # owner => 'root', # group => 'root', # mode => '0775', # notify => Service['apache2'], # content => template('php/apache2/sites-available/default-ssl.erb'), # require => Package['apache2']; } # exec { # 'enable ssl module': # path => ['/bin', '/usr/bin', '/usr/sbin/'], # command => 'a2enmod ssl', # require => Package['apache2']; # } service { 'httpd': ensure => running, name => 'httpd', hasstatus => true, pattern => 'httpd', require => Package['httpd']; } exec { 'remove www contents': path => '/bin/', command => "rm -rf /var/www/html/*", require => Package['httpd'], } # Apache end # exec { 'clone git repo': # path => ['/bin', '/usr/bin', '/usr/sbin/'], # cwd => '/var/www', # command => "git clone ${stratos_git_repo}", # require => [ # Package['git-all.noarch'], # Package['httpd'], # ] # } } On Wed, Apr 2, 2014 at 9:05 AM, Nirmal Fernando wrote: > In your script, do you have "stratos_" string somewhere? > > > On Wed, Apr 2, 2014 at 9:30 PM, Lahiru Sandaruwan wrote: > >> Hi Nirmal, >> >> Correct. I have a changed script to work with CentOS. Do you know which >> line calls this. Could not find :) >> >> Thanks. >> >> >> On Wed, Apr 2, 2014 at 7:51 AM, Nirmal Fernando wrote: >> >>> Lahiru, >>> >>> I think you might be using a different init.pp than >>> https://git-wip-us.apache.org/repos/asf?p=incubator-stratos.git;a=blob;f=tools/puppet3/modules/php/manifests/init.pp;h=5c66ecc72e160fe87dd91df12f89d57e6cc3dd70;hb=HEAD >>> >>> >>> >>> On Wed, Apr 2, 2014 at 8:01 PM, Lahiru Sandaruwan wrote: >>> >>>> PHP cartridge did not work with stratos_seninfo.rb in place. May be my >>>> puppet master configurations are wrong. >>>> >>>> Will look into it. >>>> >>>> >>>> >>>> >>>> On Wed, Apr 2, 2014 at 12:18 AM, Nirmal Fernando < >>>> nirmal070125@gmail.com> wrote: >>>> >>>>> Lahiru, >>>>> >>>>> No, we do not need the file you have pointed. We need >>>>> stratos_sendinfo.rband it's correctly documented as step 13 in [1]. >>>>> We need to remove the unnecessary files from puppet modules. >>>>> >>>>> >>>>> >>>>> On Wed, Apr 2, 2014 at 11:50 AM, Lahiru Sandaruwan wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> We need to add "stratos_facts.rb" to "/usr/lib/ruby/site_ruby/1.8/facter" >>>>>> of the image. Need changes at[1]. File is [2]. >>>>>> >>>>>> Thanks. >>>>>> >>>>>> [1] >>>>>> https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Creating+a+Cartridge+on+OpenStack+or+EC2 >>>>>> [2] >>>>>> https://git-wip-us.apache.org/repos/asf?p=incubator-stratos.git;a=blob;f=tools/puppet3/modules/php/lib/facter/stratos_facts.rb;h=3cab535efeed2c9bc6772130508f4b46e43722c2;hb=HEAD >>>>>> -- >>>>>> -- >>>>>> Lahiru Sandaruwan >>>>>> Software Engineer, >>>>>> Platform Technologies, >>>>>> WSO2 Inc., http://wso2.com >>>>>> lean.enterprise.middleware >>>>>> >>>>>> email: lahirus@wso2.com cell: (+94) 773 325 954 >>>>>> blog: http://lahiruwrites.blogspot.com/ >>>>>> twitter: http://twitter.com/lahirus >>>>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Best Regards, >>>>> Nirmal >>>>> >>>>> Nirmal Fernando. >>>>> PPMC Member & Committer of Apache Stratos, >>>>> Senior Software Engineer, WSO2 Inc. >>>>> >>>>> Blog: http://nirmalfdo.blogspot.com/ >>>>> >>>> >>>> >>>> >>>> -- >>>> -- >>>> Lahiru Sandaruwan >>>> Software Engineer, >>>> Platform Technologies, >>>> WSO2 Inc., http://wso2.com >>>> lean.enterprise.middleware >>>> >>>> email: lahirus@wso2.com cell: (+94) 773 325 954 >>>> blog: http://lahiruwrites.blogspot.com/ >>>> twitter: http://twitter.com/lahirus >>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 >>>> >>>> >>> >>> >>> -- >>> Best Regards, >>> Nirmal >>> >>> Nirmal Fernando. >>> PPMC Member & Committer of Apache Stratos, >>> Senior Software Engineer, WSO2 Inc. >>> >>> Blog: http://nirmalfdo.blogspot.com/ >>> >> >> >> >> -- >> -- >> Lahiru Sandaruwan >> Software Engineer, >> Platform Technologies, >> WSO2 Inc., http://wso2.com >> lean.enterprise.middleware >> >> email: lahirus@wso2.com cell: (+94) 773 325 954 >> blog: http://lahiruwrites.blogspot.com/ >> twitter: http://twitter.com/lahirus >> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 >> >> > > > -- > Best Regards, > Nirmal > > Nirmal Fernando. > PPMC Member & Committer of Apache Stratos, > Senior Software Engineer, WSO2 Inc. > > Blog: http://nirmalfdo.blogspot.com/ > -- -- Lahiru Sandaruwan Software Engineer, Platform Technologies, WSO2 Inc., http://wso2.com lean.enterprise.middleware email: lahirus@wso2.com cell: (+94) 773 325 954 blog: http://lahiruwrites.blogspot.com/ twitter: http://twitter.com/lahirus linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 --001a1133bbd0cbe41d04f6119f21 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
It seems not. I'm using a script used by Manula for so= me other deployment. But i cannot find that string in original one either..= .
Here is the complete script i'm using,


class php ($syslog=3D"", $docroot=3D"/va= r/www/html", $samlalias=3D"") {
=A0 $packages =3D = [
=A0 =A0 'httpd',
=A0 =A0 'openssl.x86_64&= #39;,
=A0 =A0 'mod_ssl.x86_64',
=A0 =A0 'php',
=A0 =A0 'php-adodb.noarch',
=A0 =A0 'php-dba.x86_64= ',
=A0 =A0 'php-gd.x86_64',
=A0 =A0 'ph= p-imap.x86_64',
=A0 =A0 'php-ldap.x86_64',
=A0 =A0 'php-mcrypt.x= 86_64',
=A0 =A0 'php-mysql.x86_64',
=A0 =A0= 'php-pear.noarch',
=A0 =A0 'php-xml.x86_64',
=A0 =A0 'php-xmlrpc.x86_64',
=A0 =A0 'php.x86_64',
=A0 =A0 'git-all.noarch= 9;,
=A0 =A0 ]

# =A0file { '/etc/apt/= apt.conf.d/90forceyes':
# =A0 =A0ensure =3D> present,
# =A0 =A0source =3D> 'puppet:///modules/php/90forceyes';
# =A0}

# =A0exec { 'update-apt':
# =A0 =A0path =A0 =A0=3D> ['/bin', '/usr/bin'],
# =A0 =A0command =3D> 'apt-get update > /dev/null 2>&a= mp;1 &',
# =A0 =A0require =3D> File['/etc/apt/apt.conf.d/90forceyes'= ],
# =A0}

=A0 package { $packages:
=
=A0 =A0 ensure =A0 =3D> installed,
=A0 }

=A0 # Apache
=A0 file {
=A0 =A0 '/etc/httpd/conf/httpd.conf':
=A0 =A0 =A0 owner =A0 =3D> 'root',
=A0 =A0 =A0 = group =A0 =3D> 'root',
=A0 =A0 =A0 mode =A0 =A0=3D>= '0775',
=A0 =A0 =A0 notify =A0=3D> Service['httpd= '],
=A0 =A0 =A0 content =3D> template('php/httpd/httpd.conf.erb'= ;),
=A0 =A0 =A0 require =3D> Package['httpd'];
#
# =A0 =A0'/etc/apache2/sites-available/default':
# =A0 =A0 =A0owner =A0 =3D> 'root',
# =A0 =A0 =A0group =A0 =3D> 'root',
# =A0 =A0 =A0= mode =A0 =A0=3D> '0775',
# =A0 =A0 =A0notify =A0=3D>= ; Service['apache2'],
# =A0 =A0 =A0content =3D> templa= te('php/apache2/sites-available/default.erb'),
# =A0 =A0 =A0require =3D> Package['apache2'];
#
# =A0 =A0'/etc/apache2/sites-available/default-ssl':
=
# =A0 =A0 =A0owner =A0 =3D> 'root',
# =A0 =A0 =A0= group =A0 =3D> 'root',
# =A0 =A0 =A0mode =A0 =A0=3D> '0775',
# =A0 =A0 = =A0notify =A0=3D> Service['apache2'],
# =A0 =A0 =A0con= tent =3D> template('php/apache2/sites-available/default-ssl.erb'= ),
# =A0 =A0 =A0require =3D> Package['apache2'];
=A0 }

# =A0exec {
# =A0 =A0'ena= ble ssl module':
# =A0 =A0 =A0path =A0 =A0=3D> ['/bin&= #39;, '/usr/bin', '/usr/sbin/'],
# =A0 =A0 =A0com= mand =3D> 'a2enmod ssl',
# =A0 =A0 =A0require =3D> Package['apache2'];
# = =A0}

=A0 service { 'httpd':
=A0 = =A0 ensure =A0 =A0=3D> running,
=A0 =A0 name =A0 =A0 =A0=3D>= ; 'httpd',
=A0 =A0 hasstatus =3D> true,
=A0 =A0 pattern =A0 =3D> 'httpd',
=A0 =A0 require= =A0 =3D> Package['httpd'];
=A0 }

=
=A0 exec { 'remove www contents':
=A0 =A0 path =A0 = =A0=3D> '/bin/',
=A0 =A0 command =3D> "rm -rf /var/www/html/*",
= =A0 =A0 require =3D> Package['httpd'],
=A0 }

=A0 # Apache end
# =A0exec { 'clone git repo&= #39;:=A0
# =A0 =A0path =A0 =A0 =3D> ['/bin', '/usr/bin', '/us= r/sbin/'],
# =A0 =A0cwd =A0 =A0 =A0=3D> '/var/www'= ,
# =A0 =A0command =A0=3D> "git clone ${stratos_git_repo}= ",
# =A0 =A0require =A0=3D> [
# =A0 =A0 =A0Package['git-all.noarch'],
# =A0 =A0 = =A0Package['httpd'],
# =A0 =A0]
# =A0}
}



On Wed, Apr 2, 2014 at 9:05 AM, Nirmal Fernando <ni= rmal070125@gmail.com> wrote:
In your script, do you have "stratos= _" string somewhere?


On Wed, Apr 2= , 2014 at 9:30 PM, Lahiru Sandaruwan <lahirus@wso2.com> wrote= :
Hi Nirmal,

Correct. I = have a changed script to work with CentOS. Do you know which line calls thi= s. Could not find :)

Thanks.


On Wed, Apr 2, 2014 at 7:51 AM, Nirmal Ferna= ndo <nirmal070125@gmail.com> wrote:


=



--
--
Lahiru Sandaruwan
Softw= are Engineer,
Platform Technologies,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: lahirus@wso2.com cell: (+94) 773 325 95= 4
blog: http:= //lahiruwrites.blogspot.com/
twitter: http://tw= itter.com/lahirus
linked-in: http://lk.linkedin.com/pub/l= ahiru-sandaruwan/16/153/146




--
Best Regards,
Nirmal

Nirmal Fernando.
PPMC Member & = Committer of Apache Stratos,
Senior Software Engineer, WSO2 Inc.




--
=
--
Lahiru Sandaru= wan
Software Engineer,
Platform Technologies,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: lahirus@wso2.com cell: (+94) 773 325 95= 4
blog: http:= //lahiruwrites.blogspot.com/
twitter: http://tw= itter.com/lahirus
linked-in: http://lk.linkedin.com/pub/l= ahiru-sandaruwan/16/153/146




--
Best Regards,
Nirmal

Nirmal Fernando.
PPMC Member & = Committer of Apache Stratos,
Senior Software Engineer, WSO2 Inc.




--
=
--
Lahiru Sandaru= wan
Software Engineer,
Platform Technologies,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: lahirus@wso2.com cell: (+94) 773 325 95= 4
blog: http:= //lahiruwrites.blogspot.com/
twitter: http://tw= itter.com/lahirus
linked-in: http://lk.linkedin.com/pub/l= ahiru-sandaruwan/16/153/146

--001a1133bbd0cbe41d04f6119f21--