This document specifies the installation ofAdobe Experience Manager (AEM) on Linux machines using Ansible
This document only covers AEM installation on On-premise Linux machines.
Adobe Experience Manager (AEM) is a comprehensive content management solution for building websites and all of their complementary applications, including mobile apps, paperless forms and online communities.
Manage Your Data More Effectively
AEM simplifies managing the complex environment using a variety of tools that integrate with each other and allow marketers to control all of these pieces from one place.
Ansible is software that automates software provisioning, configuration management, and application deployment. Ansible’s main goals are simplicity and ease-of-use. It also has a strong focus on security and reliability, featuring a minimum of moving parts, usage of OpenSSH for transport (with an accelerated socket mode and pull modes as alternatives), and a language that is designed around auditability by humans–even those not familiar with the program.
Minimum requirements for AEM Installation
5 GB of RAM
2 GB of HDD
JDK SE 7, 8 or 9
Installation of AEM using Ansible requires two files
Steps to be followed
- Go to your Ansible directory and modify ‘hosts’ file and add your local Linux machine address(i.e: localhost)
- Generate SSH key and copy it to your local Linux machine.
- Run AEMInstallation.yaml file with root privileges.
AEMInstallation YAML file:
- Specify the name of your Linux machine given in Ansible ‘hosts’ file.
- Add the remote_user as ansible.
- Become root user using sudo.
- SSH into your Linux machine.
- Create a task which install java in your Linux machine using yum tool.
- Create a task that runs a shell command to unpack AEM files to your Linux machine.
- Choose the directory of your choice where you want to unpack AEM files using chdir.
- Now you can use a task to modify AEM start file to configure your AEM instance.
- ModifyInstance.sh shell script is called using script command.
- Now a third task can be created which will run the start shell script in AEM crx-quickstart directory.
ModifyInstance shell script
- Pass the port and runmode values in two variables.
- Use the sed stream editor to modify the port and runmode values with the values passed in the previous two variables.
- Specify the file in which the modification is to be made.
#AEM installation using Ansible
– hosts: local
– name: AEM unpack
shell: “java -jar /home/bhanu/AEM/aem-publish-p4503.jar -unpack”
– name: AEM instance modification
– name: Run the AEM instance
sed -i -e “s/\(CQ_PORT=\).*/\1$port/” \
-e “s/\(CQ_RUNMODE=\).*/\1$runmode/” \
Ansible can be used for deployment of AEM on remote machines using with different configurations.Using Ansible make all this process run without much human intervention by automating the whole process.