stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lahiru Sandaruwan <lahi...@wso2.com>
Subject Re: "4.0.0 Creating a Cartridge on OpenStack or EC2" does not mention about "stratos_facts.rb"
Date Wed, 02 Apr 2014 16:17:12 GMT
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 <nirmal070125@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 this. Could not find :)
>>
>> Thanks.
>>
>>
>> On Wed, Apr 2, 2014 at 7:51 AM, Nirmal Fernando <nirmal070125@gmail.com>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 <lahirus@wso2.com>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.rb<https://git-wip-us.apache.org/repos/asf?p=incubator-stratos.git;a=blob_plain;f=tools/puppet3-agent/stratos_sendinfo.rb;hb=HEAD>and
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 <lahirus@wso2.com>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

Mime
View raw message