{"id":25781,"date":"2015-08-28T16:22:33","date_gmt":"2015-08-28T10:52:33","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=25781"},"modified":"2015-08-31T17:06:20","modified_gmt":"2015-08-31T11:36:20","slug":"puppet-module-for-aem-configuration","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/puppet-module-for-aem-configuration\/","title":{"rendered":"Puppet module for AEM configuration"},"content":{"rendered":"<p>This blog post focuses on AEM Author and Publish configuration using custom puppet module on agents.<\/p>\n<p><a href=\"http:\/\/docs.adobe.com\/content\/docs\/en\/aem\/6-0.html\">Adobe Experience Manager<\/a> (AEM) provides a complete suite of applications for the Web Experience Management (WEM) of organisations.<\/p>\n<p><strong>For puppet configuration and installation<\/strong><br \/>\nPlease refer to below URL: <a title=\"click here\" href=\"http:\/\/www.tothenew.com\/blog\/installing-lastest-puppet-master-and-agent-3-7-5-setup-on-ubuntu14-04-and-testing-it-with-a-small-manifest\/\">Click Here<\/a><\/p>\n<p><strong>Setup requirements:<\/strong><\/p>\n<ul>\n<li>Java is required to be installed on the system.<\/li>\n<li>Custom puppet module for AEM configuration.<\/li>\n<li>AEM quickstart.jar file with license.properties.<\/li>\n<li>Server(puppet agent) with enough RAM<\/li>\n<\/ul>\n<p><strong>Begining with java dependency:<\/strong><br \/>\nTo resolve the java dependency need to install puppetlabs java module using the below command:<\/p>\n<p>[shell]puppet module install puppetlabs-java[\/shell]<\/p>\n<p><strong>Validate puppetlabs java module is installed using command<\/strong><\/p>\n<p>[shell]puppet module list[\/shell]<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/08\/Screenshot-from-2015-08-31-161157.png\" alt=\"Screenshot from 2015-08-31 16:11:57\" width=\"347\" height=\"28\" class=\"alignnone size-full wp-image-25909\" \/><\/p>\n<p><strong>Usage of &#8220;java&#8221; module in &#8220;\/etc\/puppet\/manifests\/site.pp&#8221; <\/strong><br \/>\n[shell]<br \/>\nclass { &#8216;java&#8217;:<br \/>\n  distribution =&gt; &#8216;jre&#8217;,<br \/>\n  version      =&gt; &#8216;latest&#8217;,<br \/>\n}<br \/>\n[\/shell]<\/p>\n<p>For detailed reference : <a href=\"https:\/\/forge.puppetlabs.com\/puppetlabs\/java\">Click Here<\/a><\/p>\n<p><strong>Download the custom puppet module for AEM Installation named &#8220;<strong>aem<\/strong>&#8221; : <a href=\"https:\/\/s3.amazonaws.com\/aem-testing\/aem.tar.gz\">Click Here<\/a><\/strong><\/p>\n<p>Un-tar &#8220;aem&#8221; module at &#8220;\/etc\/puppet\/modules&#8221;<\/p>\n<p>Directory structure of &#8220;aem&#8221; module<br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/08\/Screenshot-from-2015-08-31-160520.png\" alt=\"Screenshot from 2015-08-31 16:05:20\" width=\"452\" height=\"362\" class=\"alignnone size-full wp-image-25905\" \/><\/p>\n<p><strong>Usage of &#8220;test&#8221; module in &#8220;\/etc\/puppet\/manifests\/site.pp&#8221;<\/strong><\/p>\n<p>[shell]<br \/>\nclass { &#8216;aem::author&#8217;:<br \/>\nmessage =&gt; author,   #specify the type of AEM installation to create.Only author\/publisher valid<br \/>\nport =&gt; 7502,           #specify the port on which AEM will listen.<br \/>\n}<br \/>\nclass { &#8216;aem::publish&#8217;:<br \/>\nmessage =&gt; publish,   #specify the type of AEM installation to create.Only author\/publisher valid<br \/>\nport =&gt; 7503,           #specify the port on which AEM will listen.<br \/>\n}<\/p>\n<p>[\/shell]<\/p>\n<p>Note: By default installation path set to \/tmp to change the default path need to change parameter $installation_dir with your path in file<br \/>\n&#8220;\/etc\/puppet\/modules\/aem\/manifests\/publish.pp&#8221; for &#8220;publish&#8221;<br \/>\n&#8220;\/etc\/puppet\/modules\/aem\/manifests\/author.pp&#8221; for &#8220;author&#8221;<\/p>\n<p><strong>Other parameter:<\/strong><br \/>\nOther parameter value defined in author.pp and publish.pp also modify as per requirements are:<\/p>\n<p>[shell]<br \/>\n$MaxPermSize = &#8216;256&#8217; #Specify the java MaxPermSize<br \/>\n$Xmx = &#8216;1024&#8217;, #Specify the java max heap size<br \/>\n[\/shell]<\/p>\n<p><strong>AEM quickstart jar file with license.properties<\/strong><\/p>\n<p>AEM <a href=\"http:\/\/www.adobe.com\/marketing-cloud\/enterprise-content-management.html?promoid=KFBZV\">license.properties<\/a> should be placed &#8220;\/etc\/puppet\/modules\/aem\/templates\/&#8221; and renamed as license.properties.erb as has dependency in author.pp and publish.pp<\/p>\n<p>Note:<br \/>\nIf you don&#8217;t want to rename then you need to make changes accordingly in dependency files.<\/p>\n<p>In &#8220;\/etc\/puppet\/modules\/aem\/templates\/launchinstance.sh.erb&#8221; you need to specify source from where you downloading cq-quickstart-5.6.1.jar in line number 12.<br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/08\/Screenshot-from-2015-08-31-170245.png\" alt=\"Screenshot from 2015-08-31 17:02:45\" width=\"462\" height=\"141\" class=\"alignnone size-full wp-image-25944\" \/><br \/>\nMoving large files like cq-quickstart-5.6.1.jar from puppetmaster to puppet-agents lead to puppetmaster high load-average or failure.  <\/p>\n<p><strong>Apply the module on puppet agents<\/strong><br \/>\n[shell]puppet agent -tv &#8211;debug[\/shell]<\/p>\n<p>Command finished notice:<br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/08\/Screenshot-from-2015-08-31-152606.png\" alt=\"Screenshot from 2015-08-31 15:26:06\" width=\"663\" height=\"180\" class=\"alignnone size-full wp-image-25917\" \/><\/p>\n<p>Verify the changes on puppet agent<br \/>\n[shell]ps -ef |  grep java[\/shell]<\/p>\n<p><strong>Screenshot:<\/strong><br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/08\/Screenshot-from-2015-08-30-101842.png\" alt=\"Screenshot from 2015-08-30 10:18:42\" width=\"1282\" height=\"142\" class=\"alignnone size-full wp-image-25806\" \/><\/p>\n<p>As per other use case if you want to install Author and Publish on separate machine then use below command:<\/p>\n<p>For Author Installation:<br \/>\n[shell] puppet agent &#8211;no-daemonize &#8211;onetime &#8211;verbose &#8211;tags=author[\/shell]<br \/>\nFor Publish Installation:<br \/>\n[shell] puppet agent &#8211;no-daemonize &#8211;onetime &#8211;verbose &#8211;tags=publish[\/shell]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This blog post focuses on AEM Author and Publish configuration using custom puppet module on agents. Adobe Experience Manager (AEM) provides a complete suite of applications for the Web Experience Management (WEM) of organisations. For puppet configuration and installation Please refer to below URL: Click Here Setup requirements: Java is required to be installed on [&hellip;]<\/p>\n","protected":false},"author":215,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":3},"categories":[1],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/25781"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/215"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=25781"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/25781\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=25781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=25781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=25781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}