Classes
azurelaagent
: Install and configure Azure Log Analytics on Windows and Linuxazurelaagent::config
: Change Azure Log Analytics configuration on Windows and Linuxazurelaagent::config_linux
: Permit to set new workspace Id and Key. Remove all present workspace Ids.azurelaagent::config_proxy
: Configure proxy settings after installationazurelaagent::config_proxy_linux
: Configure proxy settings after installationazurelaagent::config_proxy_windows
: Configure proxy settings after installationazurelaagent::config_windows
: Permit to set new workspace Id and Key. Remove all present workspace Ids.azurelaagent::install_linux
: Install agent on linux.azurelaagent::install_windows
: Install agent on windows.
Install and configure Azure Log Analytics on Windows and Linux
class { 'azurelaagent':
azure_id => 'your_workspace_id',
azure_shared => 'your_shared_key',
}
include azurelaagent
The following parameters are available in the azurelaagent
class.
Data type: String
'present' to install the agent, 'absent' to uninstall the agent
Data type: Optional[String]
Azure workspace ID
Default value: undef
Data type: Optional[String]
Azure shared key
Default value: undef
Data type: Optional[Boolean]
True to use a proxy
Default value: false
Data type: Optional[String]
Proxy URL like [protocol://][user:password@]proxyhost[:port]
Default value: undef
Change Azure Log Analytics configuration on Windows and Linux
class { 'azurelaagent::config':
azure_id => 'your_workspace_id',
azure_shared => 'your_shared_key',
}
include azurelaagent::config
The following parameters are available in the azurelaagent::config
class.
Data type: String
Azure workspace ID
Data type: String
Azure shared key
Permit to set new workspace Id and Key. Remove all present workspace Ids.
class {'azurelaagent::config_linux':
azure_id => 'new_workspace_id',
azure_shared => 'new_shared_key',
}
The following parameters are available in the azurelaagent::config_linux
class.
Data type: String
The new workspace id
Data type: String
The new workspace key
Data type: Optional[String]
Configure proxy settings after installation
class {'azurelaagent::config_proxy':
proxy_server => 'http://your.proxy:port',
proxy_user => 'username',
proxy_password => 'password',
}
The following parameters are available in the azurelaagent::config_proxy
class.
Data type: String
'present' to set proxy, 'absent' to purge settings
Data type: Optional[String]
The proxy url like http://your.proxy:port
Default value: undef
Data type: Optional[String]
Username for proxy that require authentication
Default value: undef
Data type: Optional[String]
Password for proxy that require authentication
Default value: undef
Configure proxy settings after installation
class {'azurelaagent::config_proxy_linux':
proxy_server => 'http://your.proxy:port',
proxy_user => 'username',
proxy_password => 'password',
}
The following parameters are available in the azurelaagent::config_proxy_linux
class.
Data type: String
'present' to set proxy, 'absent' to purge settings
Data type: Optional[String]
The proxy url like http://your.proxy:port
Default value: undef
Data type: Optional[String]
Username for proxy that require authentication
Default value: undef
Data type: Optional[String]
Password for proxy that require authentication
Default value: undef
Data type: Optional[String]
Where's the proxy.conf file
Data type: Optional[String]
Command to restart the omsagent
Configure proxy settings after installation
class {'azurelaagent::config_proxy_windows':
proxy_server => 'http://your.proxy:port',
proxy_user => 'username',
proxy_password => 'password',
}
The following parameters are available in the azurelaagent::config_proxy_windows
class.
Data type: String
'present' to set proxy, 'absent' to purge settings
Data type: Optional[String]
The proxy url like http://your.proxy:port
Default value: undef
Data type: Optional[String]
Username for proxy that require authentication
Default value: undef
Data type: Optional[String]
Password for proxy that require authentication
Default value: undef
Data type: Optional[String]
Where to put the powershell script
Permit to set new workspace Id and Key. Remove all present workspace Ids.
class {'azurelaagent::config_windows':
azure_id => 'new_workspace_id',
azure_shared => 'new_shared_key',
}
The following parameters are available in the azurelaagent::config_windows
class.
Data type: String
The new workspace id
Data type: String
The new workspace key
Data type: Optional[String]
To override default value use yaml file and define variables like azurelaagent::install_linux::x64_download_path: 'https://github.com/Microsoft/OMS-Agent-for-Linux/releases/download/OMSAgent_v1.8.1.256/omsagent-1.8.1-256.universal.x64.sh'
The following parameters are available in the azurelaagent::install_linux
class.
Data type: String
'present' to install the agent, 'absent' to uninstall the agent
Data type: Optional[String]
Azure workspace ID (passed from init.pp)
Default value: undef
Data type: Optional[String]
Azure shared key (passed from init.pp)
Default value: undef
Data type: String
URL of the 64 bit agent
Data type: String
URL of the 32 bit agent
Data type: String
Where to download the installer
Data type: String
Name of the installer script
Data type: Optional[Boolean]
True to use a proxy (passed from init.pp)
Default value: false
Data type: Optional[String]
Proxy URL like [protocol://][user:password@]proxyhost[:port] (passed from init.pp)
Default value: undef
To override default value use yaml file and define variables like azurelaagent::install_windows::x64_download_path: 'https://go.microsoft.com/fwlink/?LinkId=828603'
The following parameters are available in the azurelaagent::install_windows
class.
Data type: String
'present' to install the agent, 'absent' to uninstall the agent
Data type: Optional[String]
Azure workspace ID (passed from init.pp)
Default value: undef
Data type: Optional[String]
Azure shared key (passed from init.pp)
Default value: undef
Data type: String
URL of the 64 bit agent
Data type: String
URL of the 32 bit agent
Data type: String
Where to download the installer
Data type: String
Name of the installer
Data type: String
Agent binaries path, used in the exec resource
Data type: String
Package name as is in Control Panel, Programs and Features
Data type: Optional[Boolean]
True to use a proxy (passed from init.pp)
Default value: false
Data type: Optional[String]
Proxy URL like [protocol://][user:password@]proxyhost[:port] (passed from init.pp)
Default value: undef