From 34b868020254106af8c79ffb85e04e294b19e44f Mon Sep 17 00:00:00 2001 From: James Falcon Date: Fri, 8 May 2020 16:38:51 -0500 Subject: Add test to ensure docs examples are valid cloud-init configs (#355) Also update all examples to include the cloud-config header if they don't have it LP: #1876414 --- doc/examples/cloud-config-apt.txt | 1 + doc/examples/cloud-config-datasources.txt | 2 ++ doc/examples/cloud-config-disk-setup.txt | 1 + doc/examples/cloud-config-landscape.txt | 1 + doc/examples/cloud-config-rsyslog.txt | 1 + 5 files changed, 6 insertions(+) (limited to 'doc/examples') diff --git a/doc/examples/cloud-config-apt.txt b/doc/examples/cloud-config-apt.txt index ec10ae94..5a56cd1b 100644 --- a/doc/examples/cloud-config-apt.txt +++ b/doc/examples/cloud-config-apt.txt @@ -1,3 +1,4 @@ +#cloud-config # apt_pipelining (configure Acquire::http::Pipeline-Depth) # Default: disables HTTP pipelining. Certain web servers, such # as S3 do not pipeline properly (LP: #948461). diff --git a/doc/examples/cloud-config-datasources.txt b/doc/examples/cloud-config-datasources.txt index e5780472..13bb687c 100644 --- a/doc/examples/cloud-config-datasources.txt +++ b/doc/examples/cloud-config-datasources.txt @@ -1,3 +1,5 @@ +#cloud-config + # Documentation on data sources configuration options datasource: # Ec2 diff --git a/doc/examples/cloud-config-disk-setup.txt b/doc/examples/cloud-config-disk-setup.txt index 6b7112cb..5c6de77e 100644 --- a/doc/examples/cloud-config-disk-setup.txt +++ b/doc/examples/cloud-config-disk-setup.txt @@ -1,3 +1,4 @@ +#cloud-config # Cloud-init supports the creation of simple partition tables and file systems # on devices. diff --git a/doc/examples/cloud-config-landscape.txt b/doc/examples/cloud-config-landscape.txt index d7ff8ef8..88be57ce 100644 --- a/doc/examples/cloud-config-landscape.txt +++ b/doc/examples/cloud-config-landscape.txt @@ -1,3 +1,4 @@ +#cloud-config # Landscape-client configuration # # Anything under the top 'landscape: client' entry diff --git a/doc/examples/cloud-config-rsyslog.txt b/doc/examples/cloud-config-rsyslog.txt index 8113272d..d28dd38e 100644 --- a/doc/examples/cloud-config-rsyslog.txt +++ b/doc/examples/cloud-config-rsyslog.txt @@ -1,3 +1,4 @@ +#cloud-config ## the rsyslog module allows you to configure the systems syslog. ## configuration of syslog is under the top level cloud-config ## entry 'rsyslog'. -- cgit v1.2.3