- Description
- Setup - The basics of getting started with alteredinfra
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
The alteredinfra module installs, configures and manages various infrastructure components. For the moment, it only works on Windows OS and Puppet 4 or higher.
With this module, you are able to easily install & configure:
- the configuration agent that is part of the Altered Infrastructure solution provided by www.devpro.fr.
On a side note, this is an example of Puppet code to install an ASP.NET Core application!
If it's obvious what your module touches, you can skip this section. For example, folks can probably figure out that your mysql_instance module affects their MySQL instances.
This modules touches the following elements:
- Files located by default in
C:\Program Files
(application files) andD:\ProgamData
(log files) - IIS by adding a new appliation beneath the default web site
This modules requires the following modules:
It's advised to use r10k
and a puppetfile to load modules.
If you use a puppetfile
(with a tool like r10k for example), here is the line to be added:
mod 'alteredinfra',
:git => 'https://github.com/devpro/puppet-infra',
:branch => 'dev'
In addition to include alteredinfra::application::configagent
, the following data needs to be configured:
alteredinfra::application::configagent::package_repository: path_to_repo_where_zipfile_is
alteredinfra::application::configagent::application_version: "1_0_0_0"
All parameters for the ConfigurationAgent application are contained within the main application/configagent
class, so for any function of the module, set the options you want. See the common usages below for examples.
include alteredinfra::application::configagent
- alteredinfra::application::configagent: Application class.
The following parameters are available in the alteredinfra::application::configagent
class:
Optional.
Data type: String.
Application name that will be used in the application file path and application pool name.
Default value: ConfigurationAgent
.
Optional.
Data type: String.
Root path where the application will be installed.
Default value: C:\Program Files\Devpro
.
Optional.
Data type: String.
Temporary folder where the installation package will be extracted.
Default value: C:\Temp
.
Optional.
Data type: String.
Application log file folder path.
Default value: C:\ProgramData\Devpro\ConfigurationAgent\Logs
.
Optional.
Data type: String.
Path of puppet file.
Default value: C:\Program Files\Puppet Labs\Puppet\bin\puppet.bat
.
Mandatory.
Data type: String.
Application package repository.
Mandatory.
Data type: String.
Application version numer (for example: 1_0_0_0).
Optional.
Data type: String.
Logging level.
Default value: Information
.
Optional.
Data type: String.
Path of 7zip exe file on Windows.
Default value: C:\Program Files\7-Zip\7z.exe
.
Optional.
Data type: String.
Path of IIS appcmd exe file.
Default value: C:\\Windows\\system32\\inetsrv\\appcmd.exe
.
Optional.
Data type: String.
IIS application pool name.
Default value: ConfigurationAgentAppPool
.
Optional.
Data type: String.
IIS site name on which the application will be installed.
Default value: Default Web Site
.
Optional.
Data type: String.
IIS application pool identity type.
Default value: LocalSystem
.
This module has been tested on Windows 10 and Windows 2008 R2 running Puppet agent open source 5.3.
This is an open project, anyone can contribute and provide feedbacks.
To see who's already involved, see the list of contributors.