You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by im...@apache.org on 2015/05/14 10:28:37 UTC
[02/15] stratos git commit: Adding missing license headers in files
http://git-wip-us.apache.org/repos/asf/stratos/blob/b33aee67/tools/docker-images/cartridge-docker-images/service-images/php/packs/plugins/PhpServerStarterPlugin.yapsy-plugin
----------------------------------------------------------------------
diff --git a/tools/docker-images/cartridge-docker-images/service-images/php/packs/plugins/PhpServerStarterPlugin.yapsy-plugin b/tools/docker-images/cartridge-docker-images/service-images/php/packs/plugins/PhpServerStarterPlugin.yapsy-plugin
index 221ffd5..0fb7a01 100644
--- a/tools/docker-images/cartridge-docker-images/service-images/php/packs/plugins/PhpServerStarterPlugin.yapsy-plugin
+++ b/tools/docker-images/cartridge-docker-images/service-images/php/packs/plugins/PhpServerStarterPlugin.yapsy-plugin
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
[Core]
Name = PhpServerStarterPlugin to start Apache server with PHP
Module = PhpServerStarterPlugin
http://git-wip-us.apache.org/repos/asf/stratos/blob/b33aee67/tools/docker-images/cartridge-docker-images/service-images/tomcat-saml-sso/files/create-admin-user.sh
----------------------------------------------------------------------
diff --git a/tools/docker-images/cartridge-docker-images/service-images/tomcat-saml-sso/files/create-admin-user.sh b/tools/docker-images/cartridge-docker-images/service-images/tomcat-saml-sso/files/create-admin-user.sh
index 2f9a9c9..b0eccfb 100755
--- a/tools/docker-images/cartridge-docker-images/service-images/tomcat-saml-sso/files/create-admin-user.sh
+++ b/tools/docker-images/cartridge-docker-images/service-images/tomcat-saml-sso/files/create-admin-user.sh
@@ -1,4 +1,23 @@
#!/bin/bash
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
if [ -f /.tomcat-admin-created ]; then
echo "Tomcat 'admin' user already created"
http://git-wip-us.apache.org/repos/asf/stratos/blob/b33aee67/tools/docker-images/cartridge-docker-images/service-images/tomcat-saml-sso/files/env
----------------------------------------------------------------------
diff --git a/tools/docker-images/cartridge-docker-images/service-images/tomcat-saml-sso/files/env b/tools/docker-images/cartridge-docker-images/service-images/tomcat-saml-sso/files/env
index b9deae3..f35d431 100644
--- a/tools/docker-images/cartridge-docker-images/service-images/tomcat-saml-sso/files/env
+++ b/tools/docker-images/cartridge-docker-images/service-images/tomcat-saml-sso/files/env
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
JAVA_HOME=$1
CATALINA_HOME=$2
http://git-wip-us.apache.org/repos/asf/stratos/blob/b33aee67/tools/docker-images/cartridge-docker-images/service-images/tomcat-saml-sso/packs/plugins/TomcatServerStarterPlugin.yapsy-plugin
----------------------------------------------------------------------
diff --git a/tools/docker-images/cartridge-docker-images/service-images/tomcat-saml-sso/packs/plugins/TomcatServerStarterPlugin.yapsy-plugin b/tools/docker-images/cartridge-docker-images/service-images/tomcat-saml-sso/packs/plugins/TomcatServerStarterPlugin.yapsy-plugin
index 87e0de2..10fe641 100644
--- a/tools/docker-images/cartridge-docker-images/service-images/tomcat-saml-sso/packs/plugins/TomcatServerStarterPlugin.yapsy-plugin
+++ b/tools/docker-images/cartridge-docker-images/service-images/tomcat-saml-sso/packs/plugins/TomcatServerStarterPlugin.yapsy-plugin
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
[Core]
Name = TomcatServerStarterPlugin to read SAML SSO related metadata needed to configure SAML SSO for apps and start tomcat
Module = TomcatServerStarterPlugin
http://git-wip-us.apache.org/repos/asf/stratos/blob/b33aee67/tools/docker-images/cartridge-docker-images/service-images/tomcat-saml-sso/packs/plugins/TomcatWSO2ISMetadataPublisher.yapsy-plugin
----------------------------------------------------------------------
diff --git a/tools/docker-images/cartridge-docker-images/service-images/tomcat-saml-sso/packs/plugins/TomcatWSO2ISMetadataPublisher.yapsy-plugin b/tools/docker-images/cartridge-docker-images/service-images/tomcat-saml-sso/packs/plugins/TomcatWSO2ISMetadataPublisher.yapsy-plugin
index 6dadbe1..98c5624 100644
--- a/tools/docker-images/cartridge-docker-images/service-images/tomcat-saml-sso/packs/plugins/TomcatWSO2ISMetadataPublisher.yapsy-plugin
+++ b/tools/docker-images/cartridge-docker-images/service-images/tomcat-saml-sso/packs/plugins/TomcatWSO2ISMetadataPublisher.yapsy-plugin
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
[Core]
Name = TomcatWSO2ISMetadataPublisher to publish metadata needed for a WSO2IS SAML SSO service provider
Module = TomcatWSO2ISMetadataPublisher
http://git-wip-us.apache.org/repos/asf/stratos/blob/b33aee67/tools/docker-images/cartridge-docker-images/service-images/tomcat/files/create-admin-user.sh
----------------------------------------------------------------------
diff --git a/tools/docker-images/cartridge-docker-images/service-images/tomcat/files/create-admin-user.sh b/tools/docker-images/cartridge-docker-images/service-images/tomcat/files/create-admin-user.sh
index 2f9a9c9..da1bad2 100755
--- a/tools/docker-images/cartridge-docker-images/service-images/tomcat/files/create-admin-user.sh
+++ b/tools/docker-images/cartridge-docker-images/service-images/tomcat/files/create-admin-user.sh
@@ -1,4 +1,22 @@
#!/bin/bash
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
if [ -f /.tomcat-admin-created ]; then
echo "Tomcat 'admin' user already created"
http://git-wip-us.apache.org/repos/asf/stratos/blob/b33aee67/tools/docker-images/cartridge-docker-images/service-images/tomcat/files/env
----------------------------------------------------------------------
diff --git a/tools/docker-images/cartridge-docker-images/service-images/tomcat/files/env b/tools/docker-images/cartridge-docker-images/service-images/tomcat/files/env
index b9deae3..f35d431 100644
--- a/tools/docker-images/cartridge-docker-images/service-images/tomcat/files/env
+++ b/tools/docker-images/cartridge-docker-images/service-images/tomcat/files/env
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
JAVA_HOME=$1
CATALINA_HOME=$2
http://git-wip-us.apache.org/repos/asf/stratos/blob/b33aee67/tools/docker-images/cartridge-docker-images/service-images/tomcat/packs/plugins/TomcatServerStarterPlugin.yapsy-plugin
----------------------------------------------------------------------
diff --git a/tools/docker-images/cartridge-docker-images/service-images/tomcat/packs/plugins/TomcatServerStarterPlugin.yapsy-plugin b/tools/docker-images/cartridge-docker-images/service-images/tomcat/packs/plugins/TomcatServerStarterPlugin.yapsy-plugin
index 87e0de2..6c80de9 100644
--- a/tools/docker-images/cartridge-docker-images/service-images/tomcat/packs/plugins/TomcatServerStarterPlugin.yapsy-plugin
+++ b/tools/docker-images/cartridge-docker-images/service-images/tomcat/packs/plugins/TomcatServerStarterPlugin.yapsy-plugin
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
[Core]
Name = TomcatServerStarterPlugin to read SAML SSO related metadata needed to configure SAML SSO for apps and start tomcat
Module = TomcatServerStarterPlugin
http://git-wip-us.apache.org/repos/asf/stratos/blob/b33aee67/tools/docker-images/cartridge-docker-images/service-images/wso2is-saml-sso/files/env
----------------------------------------------------------------------
diff --git a/tools/docker-images/cartridge-docker-images/service-images/wso2is-saml-sso/files/env b/tools/docker-images/cartridge-docker-images/service-images/wso2is-saml-sso/files/env
index 2c58d27..05b273c 100644
--- a/tools/docker-images/cartridge-docker-images/service-images/wso2is-saml-sso/files/env
+++ b/tools/docker-images/cartridge-docker-images/service-images/wso2is-saml-sso/files/env
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
JAVA_HOME=$1
CARBON_HOME=$2
http://git-wip-us.apache.org/repos/asf/stratos/blob/b33aee67/tools/docker-images/cartridge-docker-images/service-images/wso2is-saml-sso/packs/plugins/WSO2ISMetaDataHandler.yapsy-plugin
----------------------------------------------------------------------
diff --git a/tools/docker-images/cartridge-docker-images/service-images/wso2is-saml-sso/packs/plugins/WSO2ISMetaDataHandler.yapsy-plugin b/tools/docker-images/cartridge-docker-images/service-images/wso2is-saml-sso/packs/plugins/WSO2ISMetaDataHandler.yapsy-plugin
index d0d7e91..5cdadf5 100644
--- a/tools/docker-images/cartridge-docker-images/service-images/wso2is-saml-sso/packs/plugins/WSO2ISMetaDataHandler.yapsy-plugin
+++ b/tools/docker-images/cartridge-docker-images/service-images/wso2is-saml-sso/packs/plugins/WSO2ISMetaDataHandler.yapsy-plugin
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
[Core]
Name = WSO2ISMetaDataHandler to read and publish metadata from and to Metadata service
Module = WSO2ISMetaDataHandler
http://git-wip-us.apache.org/repos/asf/stratos/blob/b33aee67/tools/docker-images/stratos-docker-images/bind/zone_template
----------------------------------------------------------------------
diff --git a/tools/docker-images/stratos-docker-images/bind/zone_template b/tools/docker-images/stratos-docker-images/bind/zone_template
index 995268b..ec4878d 100644
--- a/tools/docker-images/stratos-docker-images/bind/zone_template
+++ b/tools/docker-images/stratos-docker-images/bind/zone_template
@@ -1,3 +1,24 @@
+# ----------------------------------------------------------------------------
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+# ----------------------------------------------------------------------------
+
$TTL 10 ;
; $TTL used for all RRs without explicit TTL value
$ORIGIN @DOMAIN@.
http://git-wip-us.apache.org/repos/asf/stratos/blob/b33aee67/tools/docker-images/stratos-docker-images/mysql/my.cnf
----------------------------------------------------------------------
diff --git a/tools/docker-images/stratos-docker-images/mysql/my.cnf b/tools/docker-images/stratos-docker-images/mysql/my.cnf
index 468b8d8..1a529c2 100755
--- a/tools/docker-images/stratos-docker-images/mysql/my.cnf
+++ b/tools/docker-images/stratos-docker-images/mysql/my.cnf
@@ -1,3 +1,24 @@
+# ----------------------------------------------------------------------------
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+# ----------------------------------------------------------------------------
+
[mysqld]
bind-address=0.0.0.0
console=1
http://git-wip-us.apache.org/repos/asf/stratos/blob/b33aee67/tools/docker-images/stratos-docker-images/run-nsenter.sh
----------------------------------------------------------------------
diff --git a/tools/docker-images/stratos-docker-images/run-nsenter.sh b/tools/docker-images/stratos-docker-images/run-nsenter.sh
index c0a185b..45011cc 100755
--- a/tools/docker-images/stratos-docker-images/run-nsenter.sh
+++ b/tools/docker-images/stratos-docker-images/run-nsenter.sh
@@ -1,4 +1,24 @@
#!/bin/sh
+# ----------------------------------------------------------------------------
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+# ----------------------------------------------------------------------------
container_id="$1"
http://git-wip-us.apache.org/repos/asf/stratos/blob/b33aee67/tools/puppet3/modules/agent/templates/conf/templates/jndi.properties.template.erb
----------------------------------------------------------------------
diff --git a/tools/puppet3/modules/agent/templates/conf/templates/jndi.properties.template.erb b/tools/puppet3/modules/agent/templates/conf/templates/jndi.properties.template.erb
index e69de29..ed5bf86 100644
--- a/tools/puppet3/modules/agent/templates/conf/templates/jndi.properties.template.erb
+++ b/tools/puppet3/modules/agent/templates/conf/templates/jndi.properties.template.erb
@@ -0,0 +1,22 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+# This is a generated file and will be overwritten at the next load balancer startup.
+# Please use loadbalancer.conf for updating mb-ip, mb-port and templates/jndi.properties.template
+# file for updating other configurations.
+#
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/stratos/blob/b33aee67/tools/puppet3/modules/appserver/Modulefile
----------------------------------------------------------------------
diff --git a/tools/puppet3/modules/appserver/Modulefile b/tools/puppet3/modules/appserver/Modulefile
index bd72838..5ccedbc 100644
--- a/tools/puppet3/modules/appserver/Modulefile
+++ b/tools/puppet3/modules/appserver/Modulefile
@@ -1,3 +1,24 @@
+#--------------------------------------------------------------
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#--------------------------------------------------------------
+
name 'wso2-appserver'
version '0.1.0'
source ''
http://git-wip-us.apache.org/repos/asf/stratos/blob/b33aee67/tools/puppet3/modules/appserver/lib/facter/java_home.rb
----------------------------------------------------------------------
diff --git a/tools/puppet3/modules/appserver/lib/facter/java_home.rb b/tools/puppet3/modules/appserver/lib/facter/java_home.rb
index 9aa9d56..fd4e6ce 100644
--- a/tools/puppet3/modules/appserver/lib/facter/java_home.rb
+++ b/tools/puppet3/modules/appserver/lib/facter/java_home.rb
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
Facter.add(:java_home) do
setcode do
java_home = ENV['JAVA_HOME']
http://git-wip-us.apache.org/repos/asf/stratos/blob/b33aee67/tools/puppet3/modules/appserver/templates/conf/datasources/master-datasources.xml.erb
----------------------------------------------------------------------
diff --git a/tools/puppet3/modules/appserver/templates/conf/datasources/master-datasources.xml.erb b/tools/puppet3/modules/appserver/templates/conf/datasources/master-datasources.xml.erb
index 0fce2f6..9a8f261 100644
--- a/tools/puppet3/modules/appserver/templates/conf/datasources/master-datasources.xml.erb
+++ b/tools/puppet3/modules/appserver/templates/conf/datasources/master-datasources.xml.erb
@@ -1,3 +1,19 @@
+<!--
+ ~ Copyright WSO2, Inc. (http://wso2.com)
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
<datasources-configuration xmlns:svns="http://org.wso2.securevault/configuration">
<providers>
http://git-wip-us.apache.org/repos/asf/stratos/blob/b33aee67/tools/puppet3/modules/appserver/templates/conf/datasources/master-datasources/_remote.erb
----------------------------------------------------------------------
diff --git a/tools/puppet3/modules/appserver/templates/conf/datasources/master-datasources/_remote.erb b/tools/puppet3/modules/appserver/templates/conf/datasources/master-datasources/_remote.erb
index 27fa824..6b5fa5b 100644
--- a/tools/puppet3/modules/appserver/templates/conf/datasources/master-datasources/_remote.erb
+++ b/tools/puppet3/modules/appserver/templates/conf/datasources/master-datasources/_remote.erb
@@ -1,4 +1,20 @@
- <datasource>
+<!--
+ ~ Copyright WSO2, Inc. (http://wso2.com)
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
+ <datasource>
<name>WSO2_GOVERNANCE_DB</name>
<description>The datasource used for governance MySQL database</description>
<jndiConfig>
http://git-wip-us.apache.org/repos/asf/stratos/blob/b33aee67/tools/puppet3/modules/appserver/templates/conf/registry/_remote.erb
----------------------------------------------------------------------
diff --git a/tools/puppet3/modules/appserver/templates/conf/registry/_remote.erb b/tools/puppet3/modules/appserver/templates/conf/registry/_remote.erb
index 582b0f9..b600af7 100644
--- a/tools/puppet3/modules/appserver/templates/conf/registry/_remote.erb
+++ b/tools/puppet3/modules/appserver/templates/conf/registry/_remote.erb
@@ -1,3 +1,19 @@
+<!--
+ ~ Copyright WSO2, Inc. (http://wso2.com)
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
<dbConfig name="governance">
<dataSource>jdbc/<%= @registry_database %></dataSource>
</dbConfig>
http://git-wip-us.apache.org/repos/asf/stratos/blob/b33aee67/tools/puppet3/modules/appserver/templates/conf/user-mgt/_roldap.erb
----------------------------------------------------------------------
diff --git a/tools/puppet3/modules/appserver/templates/conf/user-mgt/_roldap.erb b/tools/puppet3/modules/appserver/templates/conf/user-mgt/_roldap.erb
index d199df7..6cdc150 100644
--- a/tools/puppet3/modules/appserver/templates/conf/user-mgt/_roldap.erb
+++ b/tools/puppet3/modules/appserver/templates/conf/user-mgt/_roldap.erb
@@ -1,3 +1,19 @@
+<!--
+ ~ Copyright WSO2, Inc. (http://wso2.com)
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
<UserStoreManager class="org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager">
<Property name="TenantManager">org.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager</Property>
<Property name="ReadOnly">true</Property>
http://git-wip-us.apache.org/repos/asf/stratos/blob/b33aee67/tools/puppet3/modules/appserver/templates/conf/user-mgt/_rwldap.erb
----------------------------------------------------------------------
diff --git a/tools/puppet3/modules/appserver/templates/conf/user-mgt/_rwldap.erb b/tools/puppet3/modules/appserver/templates/conf/user-mgt/_rwldap.erb
index b480984..b496773 100644
--- a/tools/puppet3/modules/appserver/templates/conf/user-mgt/_rwldap.erb
+++ b/tools/puppet3/modules/appserver/templates/conf/user-mgt/_rwldap.erb
@@ -1,3 +1,19 @@
+<!--
+ ~ Copyright WSO2, Inc. (http://wso2.com)
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
<UserStoreManager class="org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager">
<Property name="TenantManager">org.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager</Property>
<Property name="ConnectionURL"><%= @ldap_connection_uri %></Property>
http://git-wip-us.apache.org/repos/asf/stratos/blob/b33aee67/tools/puppet3/modules/jboss/templates/hornetq/run.erb
----------------------------------------------------------------------
diff --git a/tools/puppet3/modules/jboss/templates/hornetq/run.erb b/tools/puppet3/modules/jboss/templates/hornetq/run.erb
index 62b9747..93a86a5 100644
--- a/tools/puppet3/modules/jboss/templates/hornetq/run.erb
+++ b/tools/puppet3/modules/jboss/templates/hornetq/run.erb
@@ -1,4 +1,25 @@
#!/bin/bash
+#--------------------------------------------------------------
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#--------------------------------------------------------------
+
# Redirect stderr so everything ends up in the log file
exec 2>&1
http://git-wip-us.apache.org/repos/asf/stratos/blob/b33aee67/tools/puppet3/modules/lb/templates/conf/templates/jndi.properties.template.erb
----------------------------------------------------------------------
diff --git a/tools/puppet3/modules/lb/templates/conf/templates/jndi.properties.template.erb b/tools/puppet3/modules/lb/templates/conf/templates/jndi.properties.template.erb
index e69de29..ed5bf86 100644
--- a/tools/puppet3/modules/lb/templates/conf/templates/jndi.properties.template.erb
+++ b/tools/puppet3/modules/lb/templates/conf/templates/jndi.properties.template.erb
@@ -0,0 +1,22 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+# This is a generated file and will be overwritten at the next load balancer startup.
+# Please use loadbalancer.conf for updating mb-ip, mb-port and templates/jndi.properties.template
+# file for updating other configurations.
+#
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/stratos/blob/b33aee67/tools/puppet3/modules/mysql/templates/mysql_root_password_setter.sh.erb
----------------------------------------------------------------------
diff --git a/tools/puppet3/modules/mysql/templates/mysql_root_password_setter.sh.erb b/tools/puppet3/modules/mysql/templates/mysql_root_password_setter.sh.erb
index 427e31e..fb28cd8 100755
--- a/tools/puppet3/modules/mysql/templates/mysql_root_password_setter.sh.erb
+++ b/tools/puppet3/modules/mysql/templates/mysql_root_password_setter.sh.erb
@@ -1,5 +1,22 @@
#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
export PATH='/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin'
PASSWD=$1
http://git-wip-us.apache.org/repos/asf/stratos/blob/b33aee67/tools/puppet3/modules/mysql/templates/publish-metadata.py.erb
----------------------------------------------------------------------
diff --git a/tools/puppet3/modules/mysql/templates/publish-metadata.py.erb b/tools/puppet3/modules/mysql/templates/publish-metadata.py.erb
index 21745dc..fde6a45 100755
--- a/tools/puppet3/modules/mysql/templates/publish-metadata.py.erb
+++ b/tools/puppet3/modules/mysql/templates/publish-metadata.py.erb
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
__author__ = 'udara'
import urllib2
http://git-wip-us.apache.org/repos/asf/stratos/blob/b33aee67/tools/puppet3/modules/php/files/agent/plugins/PhpServerStarterPlugin.yapsy-plugin
----------------------------------------------------------------------
diff --git a/tools/puppet3/modules/php/files/agent/plugins/PhpServerStarterPlugin.yapsy-plugin b/tools/puppet3/modules/php/files/agent/plugins/PhpServerStarterPlugin.yapsy-plugin
index 221ffd5..a4052d2 100644
--- a/tools/puppet3/modules/php/files/agent/plugins/PhpServerStarterPlugin.yapsy-plugin
+++ b/tools/puppet3/modules/php/files/agent/plugins/PhpServerStarterPlugin.yapsy-plugin
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
[Core]
Name = PhpServerStarterPlugin to start Apache server with PHP
Module = PhpServerStarterPlugin
http://git-wip-us.apache.org/repos/asf/stratos/blob/b33aee67/tools/puppet3/modules/python_agent/templates/logging.ini.erb
----------------------------------------------------------------------
diff --git a/tools/puppet3/modules/python_agent/templates/logging.ini.erb b/tools/puppet3/modules/python_agent/templates/logging.ini.erb
index 1bd9a86..7a74938 100644
--- a/tools/puppet3/modules/python_agent/templates/logging.ini.erb
+++ b/tools/puppet3/modules/python_agent/templates/logging.ini.erb
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
[formatters]
keys=default