- Resource Model
- Types
- Defining
- Document - https://gist.github.com/abrader/6cb4baea1ffa64bd54a2b99f807488cd
- Example - puppetlabs/inifile
- Namevars
- Single namevar
- Defining
- Types
- Document - https://gist.github.com/abrader/9d4f3a35a619d9d11377a14904b69060
This file contains hidden or 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
| [Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}; $webClient = New-Object System.Net.WebClient; $webClient.DownloadFile("https://pe-201643-master:8140/packages/current/install.ps1", "$env:temp\install.ps1"); & "$env:temp\install.ps1" |
f5_authn_login
f5_authn_root
f5_echo
f5_add_to_trust
f5_config_sync
f5_device_group
f5_sync_status
f5_traffic_group
f5_traffic_group_stats
This file contains hidden or 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
| [root@hades ~]# smartctl -i /dev/sda | |
| smartctl 6.5 2016-05-07 r4318 [x86_64-linux-4.9.6-200.fc25.x86_64] (local build) | |
| Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org | |
| === START OF INFORMATION SECTION === | |
| Vendor: 6$6 | |
| Product: ��@ | |
| User Capacity: 3,001,322,180,671,689,960 bytes [3001 PB] | |
| Logical block size: 1234716765 bytes | |
| >> Terminate command early due to bad response to IEC mode page |
This file contains hidden or 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
| #!/usr/bin/env python | |
| def set_resolvers(domain, searches = [], resolvers = []): | |
| try: | |
| with open( '/etc/resolv.conf', 'w' ) as resolvconf: | |
| for server in resolvers: | |
| ns = 'nameserver {0}\n'.format( server ).strip() | |
| print ns | |
| resolvconf.write(ns) | |
| for search in searches: | |
| search = 'search {0}\n'.format( search ).strip() |
This file contains hidden or 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
| *.gem | |
| *.rbc | |
| /.config | |
| /coverage/ | |
| /InstalledFiles | |
| /pkg/ | |
| /spec/reports/ | |
| /test/tmp/ | |
| /test/version_tmp/ | |
| /tmp/ |
This file contains hidden or 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 system::dbadmins { | |
| require mysql::server | |
| mysql_user { 'zack@localhost' : | |
| ensure => present, | |
| max_queries_per_hour => 1200, | |
| } | |
| mysql_user { 'monica@localhost' : | |
| ensure => present, | |
| max_queries_per_hour => 600, |
