Revision: 480
Author: arthur.purnama
Date: Tue Jul 3 15:37:49 2012
Log: create puppet script
http://code.google.com/p/kateglo/source/detail?r=480
Added:
/branches/kateglox/vagrant/puppet/modules/apache/templates
/branches/kateglox/vagrant/puppet/modules/apache/templates/httpd.conf.erb
/branches/kateglox/vagrant/puppet/modules/apache/templates/site.erb
/branches/kateglox/vagrant/puppet/modules/java
/branches/kateglox/vagrant/puppet/modules/java/manifests
/branches/kateglox/vagrant/puppet/modules/java/manifests/init.pp
/branches/kateglox/vagrant/puppet/modules/solr
/branches/kateglox/vagrant/puppet/modules/solr/manifests
/branches/kateglox/vagrant/puppet/modules/solr/manifests/init.pp
Modified:
/branches/kateglox/.idea/workspace.xml
/branches/kateglox/vagrant/puppet/modules/apache/manifests/init.pp
=======================================
--- /dev/null
+++
/branches/kateglox/vagrant/puppet/modules/apache/templates/httpd.conf.erb
Tue Jul 3 15:37:49 2012
@@ -0,0 +1,43 @@
+<IfModule mod_deflate.c>
+ # Insert filter
+ SetOutputFilter DEFLATE
+
+ # compression level to the maximum (9)
+ DeflateCompressionLevel 9
+
+ # Netscape 4.x has some problems...
+ BrowserMatch ^Mozilla/4 gzip-only-text/html
+
+ # Netscape 4.06-4.08 have some more problems
+ BrowserMatch ^Mozilla/4\.0[678] no-gzip
+
+ # MSIE masquerades as Netscape, but it is fine
+ # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
+
+ # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
+ # the above regex won't work. You can use the following
+ # workaround to get the desired effect:
+ BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
+
+ # Don't compress this file types
+ SetEnvIfNoCase Request_URI \
+ \.(?:gif|jpe?g|png|exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary
+
+ # Make sure proxies don't deliver the wrong content
+ Header append Vary User-Agent env=!dont-vary
+</IfModule>
+
+<IfModule mod_expires.c>
+ ExpiresActive On
+ ExpiresByType image/gif "access plus 1 years"
+ ExpiresByType image/jpeg "access plus 1 years"
+ ExpiresByType image/png "access plus 1 years"
+ ExpiresByType text/css "access plus 1 years"
+ ExpiresByType text/js "access plus 1 years"
+ ExpiresByType text/javascript "access plus 1 years"
+ ExpiresByType application/javascript "access plus 1 years"
+ ExpiresByType application/x-javascript "access plus 1 years"
+ ExpiresDefault "access plus 1 hour"
+</IfModule>
+
+FileETag INode MTime Size
=======================================
--- /dev/null
+++ /branches/kateglox/vagrant/puppet/modules/apache/templates/site.erb Tue
Jul 3 15:37:49 2012
@@ -0,0 +1,41 @@
+<VirtualHost *:80>
+ ServerAdmin <%= serverAdmin %>
+
+ DocumentRoot <%= documentRoot %>
+ <Directory />
+ Options FollowSymLinks
+ AllowOverride All
+ </Directory>
+ <Directory <%= documentRoot %>>
+ Options Indexes FollowSymLinks MultiViews
+ AllowOverride All
+ Order allow,deny
+ allow from all
+ </Directory>
+
+ ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
+ <Directory "/usr/lib/cgi-bin">
+ AllowOverride None
+ Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
+ Order allow,deny
+ Allow from all
+ </Directory>
+
+ ErrorLog <%= errorLog %>
+
+ # Possible values include: debug, info, notice, warn, error, crit,
+ # alert, emerg.
+ LogLevel <%= logLevel %>
+
+ CustomLog ${APACHE_LOG_DIR}/access.log combined
+
+ Alias /doc/ "/usr/share/doc/"
+ <Directory "/usr/share/doc/">
+ Options Indexes MultiViews FollowSymLinks
+ AllowOverride None
+ Order deny,allow
+ Deny from all
+ Allow from
127.0.0.0/255.0.0.0 ::1/128
+ </Directory>
+
+</VirtualHost>
=======================================
--- /dev/null
+++ /branches/kateglox/vagrant/puppet/modules/java/manifests/init.pp Tue
Jul 3 15:37:49 2012
@@ -0,0 +1,14 @@
+class java {
+ package {
+ "openjdk-7-jdk" :
+ ensure => installed,
+ require => Exec["apt-get update"]
+ }
+
+ package {
+
["openjdk-7-source", "openjdk-7-demo", "openjdk-7-doc", "openjdk-7-jre-headless", "openjdk-7-jre-lib"] :
+ ensure => installed,
+ require => Package["openjdk-7-jdk"]
+ }
+
+}
=======================================
--- /dev/null
+++ /branches/kateglox/vagrant/puppet/modules/solr/manifests/init.pp Tue
Jul 3 15:37:49 2012
@@ -0,0 +1,15 @@
+class solr {
+ package {
+ "jetty" :
+ ensure => installed,
+ require => Exec["apt-get update"]
+ }
+
+ service {
+ 'jetty' :
+ enable => true,
+ ensure => running,
+ subscribe => [Package['jetty']]
+ }
+
+}
=======================================
--- /branches/kateglox/.idea/workspace.xml Tue Jul 3 12:42:44 2012
+++ /branches/kateglox/.idea/workspace.xml Tue Jul 3 15:37:49 2012
@@ -2,8 +2,17 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" readonly="true"
id="7fad7703-02e1-4f4f-8603-084b2e534c9a" name="Default" comment="">
- <change type="DELETED"
beforePath="C:\Users\Purnama\StormWorkspace\kateglo\logs" afterPath="" />
+ <change type="NEW" beforePath=""
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/apache/templates" />
+ <change type="NEW" beforePath=""
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/java/manifests" />
+ <change type="NEW" beforePath=""
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/java" />
+ <change type="NEW" beforePath=""
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/solr/manifests" />
+ <change type="NEW" beforePath=""
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/solr" />
+ <change type="NEW" beforePath=""
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/apache/templates/httpd.conf.erb"
/>
+ <change type="NEW" beforePath=""
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/apache/templates/site.erb"
/>
+ <change type="NEW" beforePath=""
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/java/manifests/init.pp" />
+ <change type="NEW" beforePath=""
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/solr/manifests/init.pp" />
<change type="MODIFICATION"
beforePath="$PROJECT_DIR$/.idea/workspace.xml"
afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
+ <change type="MODIFICATION"
beforePath="$PROJECT_DIR$/vagrant/puppet/modules/apache/manifests/init.pp"
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/apache/manifests/init.pp" />
</list>
<ignored path="kateglo.iws" />
<ignored path=".idea/workspace.xml" />
@@ -22,11 +31,51 @@
</component>
<component name="FavoritesManager">
<favorites_list name="kateglo" />
+ </component>
+ <component name="FileEditorManager">
+ <leaf>
+ <file leaf-file-name="init.pp" pinned="false" current="true"
current-in-tab="true">
+ <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/apache/manifests/init.pp">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="65" column="44" selection-start="1780"
selection-end="1780" vertical-scroll-proportion="0.60394263">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ </file>
+ <file leaf-file-name="site.erb" pinned="false" current="false"
current-in-tab="false">
+ <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/apache/templates/site.erb">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="27" column="18" selection-start="633"
selection-end="633" vertical-scroll-proportion="0.0">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ </file>
+ <file leaf-file-name="httpd.conf.erb" pinned="false" current="false"
current-in-tab="false">
+ <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/apache/templates/httpd.conf.erb">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="42" column="25" selection-start="1474"
selection-end="1474" vertical-scroll-proportion="0.0">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ </file>
+ </leaf>
</component>
<component name="FindManager">
<FindUsagesManager>
<setting name="OPEN_NEW_TAB" value="false" />
</FindUsagesManager>
+ </component>
+ <component name="IdeDocumentHistory">
+ <option name="changedFiles">
+ <list>
+ <option
value="$PROJECT_DIR$/vagrant/puppet/modules/apache/templates/site.erb" />
+ <option
value="$PROJECT_DIR$/vagrant/puppet/modules/apache/templates/httpd.conf.erb"
/>
+ <option
value="$PROJECT_DIR$/vagrant/puppet/modules/apache/manifests/init.pp" />
+ </list>
+ </option>
</component>
<component name="PhpWorkspaceProjectConfiguration"
backward_compatibility_performed="true" />
<component name="ProjectFrameBounds">
@@ -92,6 +141,158 @@
<option name="myItemId" value="kateglo" />
<option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="vagrant" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="puppet" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ </PATH>
+ <PATH>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="kateglo" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="kateglo" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="vagrant" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="puppet" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="modules" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ </PATH>
+ <PATH>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="kateglo" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="kateglo" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="vagrant" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="puppet" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="modules" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="php" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="manifests" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ </PATH>
+ <PATH>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="kateglo" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="kateglo" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="vagrant" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="puppet" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="modules" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="apache" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="templates" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ </PATH>
+ <PATH>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="kateglo" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="kateglo" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="vagrant" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="puppet" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="modules" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="apache" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="manifests" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ </PATH>
+ <PATH>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="kateglo" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="kateglo" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="vagrant" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="puppet" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="manifests" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ </PATH>
+ <PATH>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="kateglo" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="kateglo" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
</PATH>
</subPane>
</pane>
@@ -110,7 +311,7 @@
<component name="PropertiesComponent">
<property name="options.splitter.main.proportions" value="0.3" />
<property name="WebServerToolWindowFactoryState" value="true" />
- <property name="options.lastSelected"
value="reference.settings.deploy.options" />
+ <property name="options.lastSelected"
value="editor.preferences.appearance" />
<property name="options.searchVisible" value="true" />
<property name="options.splitter.details.proportions" value="0.2" />
</component>
@@ -202,30 +403,34 @@
<created>1341341757102</created>
<updated>1341341757102</updated>
</task>
- <option name="localTasksCounter" value="2" />
+ <task id="LOCAL-00002">
+ <created>1341344567103</created>
+ <updated>1341344567103</updated>
+ </task>
+ <option name="localTasksCounter" value="3" />
<servers />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1066" extended-state="6" />
- <editor active="false" />
+ <editor active="true" />
<layout>
- <window_info id="Messages" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.3289183" sideWeight="0.5" order="-1" side_tool="false"
content_ui="tabs" />
<window_info id="Data Sources" active="false" anchor="right"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.33" sideWeight="0.5" order="3" side_tool="false"
content_ui="tabs" />
- <window_info id="Changes" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true"
weight="0.3289183" sideWeight="0.5" order="7" side_tool="false"
content_ui="tabs" />
- <window_info id="TODO" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.33" sideWeight="0.5" order="6" side_tool="false"
content_ui="tabs" />
- <window_info id="Structure" active="false" anchor="left"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.25" sideWeight="0.5" order="1" side_tool="true" content_ui="tabs"
/>
+ <window_info id="File Transfer" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.3289183" sideWeight="0.5" order="7" side_tool="false"
content_ui="tabs" />
+ <window_info id="Changes" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.3289183" sideWeight="0.5" order="7" side_tool="false"
content_ui="tabs" />
+ <window_info id="Find" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true"
weight="0.3289183" sideWeight="0.5" order="1" side_tool="false"
content_ui="tabs" />
<window_info id="Remote Host" active="false" anchor="right"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.33" sideWeight="0.5" order="3" side_tool="false"
content_ui="tabs" />
- <window_info id="Project" active="true" anchor="left"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true"
weight="0.2588047" sideWeight="0.67108166" order="0" side_tool="false"
content_ui="combo" />
<window_info id="Debug" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs"
/>
- <window_info id="Favorites" active="false" anchor="left"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs"
/>
<window_info id="Event Log" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs"
/>
- <window_info id="Run" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.33" sideWeight="0.5" order="2" side_tool="false"
content_ui="tabs" />
+ <window_info id="Favorites" active="false" anchor="left"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs"
/>
<window_info id="Version Control" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.33" sideWeight="0.5" order="7" side_tool="false"
content_ui="tabs" />
+ <window_info id="Messages" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.3289183" sideWeight="0.5" order="-1" side_tool="false"
content_ui="tabs" />
+ <window_info id="TODO" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.33" sideWeight="0.5" order="6" side_tool="false"
content_ui="tabs" />
+ <window_info id="Structure" active="false" anchor="left"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.25" sideWeight="0.5" order="1" side_tool="true" content_ui="tabs"
/>
+ <window_info id="Project" active="false" anchor="left"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true"
weight="0.2588047" sideWeight="0.67108166" order="0" side_tool="false"
content_ui="combo" />
+ <window_info id="Run" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.33" sideWeight="0.5" order="2" side_tool="false"
content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.25" sideWeight="0.5" order="4" side_tool="false"
content_ui="tabs" />
- <window_info id="File Transfer" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.32990867" sideWeight="0.5" order="7" side_tool="false"
content_ui="tabs" />
<window_info id="Message" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.33" sideWeight="0.5" order="0" side_tool="false"
content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.25" sideWeight="0.5" order="1" side_tool="false"
content_ui="tabs" />
- <window_info id="Find" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.33" sideWeight="0.5" order="1" side_tool="false"
content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs"
/>
<window_info id="Hierarchy" active="false" anchor="right"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.25" sideWeight="0.5" order="2" side_tool="false"
content_ui="combo" />
<window_info id="Inspection" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs"
/>
@@ -268,7 +473,7 @@
<option name="SHOW_VCS_ERROR_NOTIFICATIONS" value="true" />
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
<option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="false" />
- <option name="LAST_COMMIT_MESSAGE" value="vagrant and puppets setting"
/>
+ <option name="LAST_COMMIT_MESSAGE" value="create puppet script" />
<option name="MAKE_NEW_CHANGELIST_ACTIVE" value="false" />
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
<option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
@@ -283,9 +488,33 @@
<option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
<MESSAGE value="remove eclipse settings" />
<MESSAGE value="vagrant and puppets setting" />
+ <MESSAGE value="create puppet script" />
</component>
<component name="XDebuggerManager">
<breakpoint-manager />
+ </component>
+ <component name="editorHistoryManager">
+ <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/apache/templates/httpd.conf.erb">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="42" column="25" selection-start="1474"
selection-end="1474" vertical-scroll-proportion="0.0">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/apache/templates/site.erb">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="27" column="18" selection-start="633"
selection-end="633" vertical-scroll-proportion="0.0">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/apache/manifests/init.pp">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="65" column="44" selection-start="1780"
selection-end="1780" vertical-scroll-proportion="0.60394263">
+ <folding />
+ </state>
+ </provider>
+ </entry>
</component>
</project>
=======================================
--- /branches/kateglox/vagrant/puppet/modules/apache/manifests/init.pp Tue
Jul 3 11:55:45 2012
+++ /branches/kateglox/vagrant/puppet/modules/apache/manifests/init.pp Tue
Jul 3 15:37:49 2012
@@ -38,11 +38,56 @@
exec{ 'apache2ctl graceful':
refreshonly => true,
path => '/usr/sbin',
- subscribe => [Package['apache2']]
+ subscribe => [Package['apache2'], Exec['/usr/sbin/a2ensite kateglo']]
}
module {
["deflate", "expires", "headers", "rewrite"] :
ensure => 'present'
}
-}
+
+ file {"/etc/apache2/httpd.conf":
+ content => template('apache/httpd.conf.erb'),
+ owner => 'root',
+ group => 'root',
+ mode => 0644,
+ require => Package['apache2'],
+ ensure => 'present',
+ notify => Exec['apache2ctl graceful'],
+ }
+
+ # ServerAdmin webmaster@localhost
+ $serverAdmin = '
webm...@kateglo.com'
+
+ # DocumentRoot /var/www
+ $documentRoot = '/home/vagrant/kateglo/public'
+
+ # ErrorLog ${APACHE_LOG_DIR}/error.log
+ $errorLog = '${APACHE_LOG_DIR}/error.log'
+
+ # Possible values include: debug, info, notice, warn, error, crit,
+ # alert, emerg.
+ $logLevel = 'debug'
+
+ file {"/etc/apache2/sites-available/kateglo":
+ content => template('apache/site.erb'),
+ owner => 'root',
+ group => 'root',
+ mode => 0644,
+ require => Package['apache2'],
+ ensure => 'present',
+ notify => Exec['/usr/sbin/a2ensite kateglo'],
+ }
+
+ exec { "/usr/sbin/a2dissite default":
+ onlyif => "test -f /etc/apache2/sites-enabled/000-default",
+ notify => Exec["apache2ctl graceful"],
+ require => File["/etc/apache2/sites-available/kateglo"],
+ }
+
+ exec { "/usr/sbin/a2ensite kateglo":
+ require => File["/etc/apache2/sites-available/kateglo"],
+ creates => '/etc/apache2/sites-enabled/kateglo',
+ notify => Exec["apache2ctl graceful"],
+ }
+}