2023-09-02 07:41:21 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Copyright (c) Alexei Znamensky (russoz@gmail.com)
|
|
|
|
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
---
|
|
|
|
- id: puppet_agent_plain
|
|
|
|
input: {}
|
|
|
|
output:
|
|
|
|
changed: false
|
|
|
|
run_command_calls:
|
|
|
|
- command: [/testbin/puppet, config, print, agent_disabled_lockfile]
|
2023-09-12 14:49:23 +02:00
|
|
|
environ: &env-def {environ_update: {LANGUAGE: C, LC_ALL: C}, check_rc: false}
|
2023-09-02 07:41:21 +02:00
|
|
|
rc: 0
|
|
|
|
out: "blah, anything"
|
|
|
|
err: ""
|
|
|
|
- command:
|
|
|
|
- /testbin/timeout
|
|
|
|
- -s
|
|
|
|
- "9"
|
|
|
|
- 30m
|
|
|
|
- /testbin/puppet
|
|
|
|
- agent
|
|
|
|
- --onetime
|
|
|
|
- --no-daemonize
|
|
|
|
- --no-usecacheonfailure
|
|
|
|
- --no-splay
|
|
|
|
- --detailed-exitcodes
|
|
|
|
- --verbose
|
|
|
|
- --color
|
|
|
|
- "0"
|
2023-09-12 14:49:23 +02:00
|
|
|
environ: *env-def
|
2023-09-02 07:41:21 +02:00
|
|
|
rc: 0
|
|
|
|
out: ""
|
|
|
|
err: ""
|
|
|
|
- id: puppet_agent_certname
|
|
|
|
input:
|
|
|
|
certname: potatobox
|
|
|
|
output:
|
|
|
|
changed: false
|
|
|
|
run_command_calls:
|
|
|
|
- command: [/testbin/puppet, config, print, agent_disabled_lockfile]
|
2023-09-12 14:49:23 +02:00
|
|
|
environ: *env-def
|
2023-09-02 07:41:21 +02:00
|
|
|
rc: 0
|
|
|
|
out: "blah, anything"
|
|
|
|
err: ""
|
|
|
|
- command:
|
|
|
|
- /testbin/timeout
|
|
|
|
- -s
|
|
|
|
- "9"
|
|
|
|
- 30m
|
|
|
|
- /testbin/puppet
|
|
|
|
- agent
|
|
|
|
- --onetime
|
|
|
|
- --no-daemonize
|
|
|
|
- --no-usecacheonfailure
|
|
|
|
- --no-splay
|
|
|
|
- --detailed-exitcodes
|
|
|
|
- --verbose
|
|
|
|
- --color
|
|
|
|
- "0"
|
|
|
|
- --certname=potatobox
|
2023-09-12 14:49:23 +02:00
|
|
|
environ: *env-def
|
2023-09-02 07:41:21 +02:00
|
|
|
rc: 0
|
|
|
|
out: ""
|
|
|
|
err: ""
|
|
|
|
- id: puppet_agent_tags_abc
|
|
|
|
input:
|
|
|
|
tags: [a, b, c]
|
|
|
|
output:
|
|
|
|
changed: false
|
|
|
|
run_command_calls:
|
|
|
|
- command: [/testbin/puppet, config, print, agent_disabled_lockfile]
|
2023-09-12 14:49:23 +02:00
|
|
|
environ: *env-def
|
2023-09-02 07:41:21 +02:00
|
|
|
rc: 0
|
|
|
|
out: "blah, anything"
|
|
|
|
err: ""
|
|
|
|
- command:
|
|
|
|
- /testbin/timeout
|
|
|
|
- -s
|
|
|
|
- "9"
|
|
|
|
- 30m
|
|
|
|
- /testbin/puppet
|
|
|
|
- agent
|
|
|
|
- --onetime
|
|
|
|
- --no-daemonize
|
|
|
|
- --no-usecacheonfailure
|
|
|
|
- --no-splay
|
|
|
|
- --detailed-exitcodes
|
|
|
|
- --verbose
|
|
|
|
- --color
|
|
|
|
- "0"
|
|
|
|
- --tags
|
|
|
|
- a,b,c
|
2023-09-12 14:49:23 +02:00
|
|
|
environ: *env-def
|
2023-09-02 07:41:21 +02:00
|
|
|
rc: 0
|
|
|
|
out: ""
|
|
|
|
err: ""
|
|
|
|
- id: puppet_agent_skip_tags_def
|
|
|
|
input:
|
|
|
|
skip_tags: [d, e, f]
|
|
|
|
output:
|
|
|
|
changed: false
|
|
|
|
run_command_calls:
|
|
|
|
- command: [/testbin/puppet, config, print, agent_disabled_lockfile]
|
2023-09-12 14:49:23 +02:00
|
|
|
environ: *env-def
|
2023-09-02 07:41:21 +02:00
|
|
|
rc: 0
|
|
|
|
out: "blah, anything"
|
|
|
|
err: ""
|
|
|
|
- command:
|
|
|
|
- /testbin/timeout
|
|
|
|
- -s
|
|
|
|
- "9"
|
|
|
|
- 30m
|
|
|
|
- /testbin/puppet
|
|
|
|
- agent
|
|
|
|
- --onetime
|
|
|
|
- --no-daemonize
|
|
|
|
- --no-usecacheonfailure
|
|
|
|
- --no-splay
|
|
|
|
- --detailed-exitcodes
|
|
|
|
- --verbose
|
|
|
|
- --color
|
|
|
|
- "0"
|
|
|
|
- --skip_tags
|
|
|
|
- d,e,f
|
2023-09-12 14:49:23 +02:00
|
|
|
environ: *env-def
|
2023-09-02 07:41:21 +02:00
|
|
|
rc: 0
|
|
|
|
out: ""
|
|
|
|
err: ""
|
|
|
|
- id: puppet_agent_noop_false
|
|
|
|
input:
|
|
|
|
noop: false
|
|
|
|
output:
|
|
|
|
changed: false
|
|
|
|
run_command_calls:
|
|
|
|
- command: [/testbin/puppet, config, print, agent_disabled_lockfile]
|
2023-09-12 14:49:23 +02:00
|
|
|
environ: *env-def
|
2023-09-02 07:41:21 +02:00
|
|
|
rc: 0
|
|
|
|
out: "blah, anything"
|
|
|
|
err: ""
|
|
|
|
- command:
|
|
|
|
- /testbin/timeout
|
|
|
|
- -s
|
|
|
|
- "9"
|
|
|
|
- 30m
|
|
|
|
- /testbin/puppet
|
|
|
|
- agent
|
|
|
|
- --onetime
|
|
|
|
- --no-daemonize
|
|
|
|
- --no-usecacheonfailure
|
|
|
|
- --no-splay
|
|
|
|
- --detailed-exitcodes
|
|
|
|
- --verbose
|
|
|
|
- --color
|
|
|
|
- "0"
|
|
|
|
- --no-noop
|
2023-09-12 14:49:23 +02:00
|
|
|
environ: *env-def
|
2023-09-02 07:41:21 +02:00
|
|
|
rc: 0
|
|
|
|
out: ""
|
|
|
|
err: ""
|
|
|
|
- id: puppet_agent_noop_true
|
|
|
|
input:
|
|
|
|
noop: true
|
|
|
|
output:
|
|
|
|
changed: false
|
|
|
|
run_command_calls:
|
|
|
|
- command: [/testbin/puppet, config, print, agent_disabled_lockfile]
|
2023-09-12 14:49:23 +02:00
|
|
|
environ: *env-def
|
2023-09-02 07:41:21 +02:00
|
|
|
rc: 0
|
|
|
|
out: "blah, anything"
|
|
|
|
err: ""
|
|
|
|
- command:
|
|
|
|
- /testbin/timeout
|
|
|
|
- -s
|
|
|
|
- "9"
|
|
|
|
- 30m
|
|
|
|
- /testbin/puppet
|
|
|
|
- agent
|
|
|
|
- --onetime
|
|
|
|
- --no-daemonize
|
|
|
|
- --no-usecacheonfailure
|
|
|
|
- --no-splay
|
|
|
|
- --detailed-exitcodes
|
|
|
|
- --verbose
|
|
|
|
- --color
|
|
|
|
- "0"
|
|
|
|
- --noop
|
2023-09-12 14:49:23 +02:00
|
|
|
environ: *env-def
|
2023-09-02 07:41:21 +02:00
|
|
|
rc: 0
|
|
|
|
out: ""
|
|
|
|
err: ""
|