This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node default { | |
$extlookup_datadir = inline_template("<%= Puppet[:manifestdir] %>/extdata") | |
$extlookup_precedence = ["fqdn/%{fqdn}", "env/%{environment}", 'default'] | |
include snmpd | |
include sysops | |
include truth::enforcer | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class truth::enforcer { | |
$server_roles = hiera('server_roles') | |
$host_cloud = hiera('host_cloud') | |
$package_versions = hiera('package_versions') | |
add_roles { $server_roles: | |
cloud => $host_cloud, | |
package_versions => $package_versions, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When ran from Windows "Administrator: Start command prompt with puppet": | |
Debug: /Package[python-pip]: Provider windows does not support features virtual_packages; not managing attribute allow_virtual | |
Debug: /Package[python-pip]: Provider windows does not support features virtual_packages; not managing attribute allow_virtual | |
Debug: /Package[python-pip]: Provider windows does not support features virtual_packages; not managing attribute allow_virtual | |
The system cannot find the path specified. | |
Debug: catalog supports formats: pson msgpack yaml b64_zlib_yaml dot raw | |
Debug: Closing connection for https://puppet-dev:8140 | |
When ran via SSH to PowerShell Server: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
winlogbeat::event_logs: | |
Application: | |
ignore_older: '72h' | |
Security: {} | |
System: {} | |
to | |
event_logs: | |
- name: Application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#BELOW IS USED TO SET EXPIRATION DATE OF IMAGE DURING DEPLOYMENT | |
# Check if image has been deployed to production before | |
ARTIFACT_PROD_TEST=$(curl -sS -X POST -u$API_USER:$API_KEY ${API_URL}/search/aql -H "Content-Type: text/plain" -d 'items.find({ "@production": {"$eq" : "true"}, "path": {"$eq" : "'${PROJECT_NAME}-${ROLE_NAME}/${TAG_NAME}'"}, "name": {"$eq" : "'manifest.json'"}}).include("name","repo","path")' | grep path | wc -l) | |
if [ "$ARTIFACT_PROD_TEST" -eq 0 ] || [[ "x${DEPLOY_OVERRIDE}" == "xtrue" ]]; then | |
# Push the docker image | |
docker push $PROJECT_NAME-$REPO_HOST/$PROJECT_NAME-$ROLE_NAME:$TAG_NAME | |
if [[ "x${TIER}" == "xprd" ]]; then | |
ARTIFACT_PROPERTIES="production=true;" | |
EXPIRE_DAYS=546 | |
elif [[ "x${TAG_NAME}" != "xlatest" ]]; then |