Skip to content

Commit

Permalink
Add inline documentation for puppet-strings usage.
Browse files Browse the repository at this point in the history
- Add ability to generate documentation with puppet-strings
  This is done with 'pdk bundle exec rake reference'
- Add generated REFERENCE.md
- Remove README.md as it was misleading
  • Loading branch information
Phil Friderici committed Jun 27, 2022
1 parent 79202e0 commit 75e9166
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 12 deletions.
4 changes: 4 additions & 0 deletions .sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ spec/spec_helper.rb:
coverage_report: true
# minimum_code_coverage_percentage: 100
hiera_config: 'spec/fixtures/hiera/hiera.yaml'

.pdkignore:
paths:
- '/rakelib/'
36 changes: 24 additions & 12 deletions README.md → REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

* [`vas`](#vas): Manages Dell Authentication Services previously known as VAS / QAS.

### Functions

* [`api_fetch`](#api_fetch)

## Classes

### <a name="vas"></a>`vas`
Expand Down Expand Up @@ -62,7 +66,6 @@ The following parameters are available in the `vas` class:
* [`computers_ou`](#computers_ou)
* [`users_ou`](#users_ou)
* [`nismaps_ou`](#nismaps_ou)
* [`nismaps_ou`](#nismaps_ou)
* [`user_search_path`](#user_search_path)
* [`group_search_path`](#group_search_path)
* [`upm_search_path`](#upm_search_path)
Expand All @@ -72,6 +75,7 @@ The following parameters are available in the `vas` class:
* [`sitenameoverride`](#sitenameoverride)
* [`vas_conf_client_addrs`](#vas_conf_client_addrs)
* [`vas_conf_vasypd_update_interval`](#vas_conf_vasypd_update_interval)
* [`vas_conf_full_update_interval`](#vas_conf_full_update_interval)
* [`vas_conf_group_update_mode`](#vas_conf_group_update_mode)
* [`vas_conf_root_update_mode`](#vas_conf_root_update_mode)
* [`vas_conf_disabled_user_pwhash`](#vas_conf_disabled_user_pwhash)
Expand Down Expand Up @@ -162,7 +166,6 @@ The following parameters are available in the `vas` class:
* [`api_enable`](#api_enable)
* [`api_users_allow_url`](#api_users_allow_url)
* [`api_token`](#api_token)
* [`vas_conf_full_update_interval`](#vas_conf_full_update_interval)

##### <a name="manage_nis"></a>`manage_nis`

Expand Down Expand Up @@ -277,7 +280,7 @@ Data type: `Stdlib::Fqdn`

FQDN to join to VAS as.

Default value: `$::fqdn`
Default value: `$facts['networking']['fqdn']`

##### <a name="computers_ou"></a>`computers_ou`

Expand All @@ -304,12 +307,6 @@ Path to OU where to load nismaps initially.

Default value: `'ou=nismaps,dc=example,dc=com'`

##### <a name="nismaps_ou"></a>`nismaps_ou`

Path to OU where to load nismaps initially.

Default value: `'ou=nismaps,dc=example,dc=com'`

##### <a name="user_search_path"></a>`user_search_path`

Data type: `Optional[String[1]]`
Expand Down Expand Up @@ -387,6 +384,15 @@ NIS Map information in Active Directory. See VAS.CONF(5).

Default value: `1800`

##### <a name="vas_conf_full_update_interval"></a>`vas_conf_full_update_interval`

Data type: `Optional[Integer]`

Integer for number of seconds vasypd will wait until it fully reloads all
the NIS maps. See VAS.CONF(5)

Default value: ``undef``

##### <a name="vas_conf_group_update_mode"></a>`vas_conf_group_update_mode`

Data type: `String[1]`
Expand Down Expand Up @@ -1190,11 +1196,17 @@ Security token for authenticated access to the API.

Default value: ``undef``

##### <a name="vas_conf_full_update_interval"></a>`vas_conf_full_update_interval`
## Functions

Data type: `Optional[Integer]`
### <a name="api_fetch"></a>`api_fetch`

Type: Ruby 3.x API

The api_fetch function.

Default value: ``undef``
#### `api_fetch()`

The api_fetch function.

Returns: `Any`

7 changes: 7 additions & 0 deletions rakelib/local.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
desc 'Alias for strings:generate'
task :doc => ['strings:generate']

desc 'Generate REFERENCE.md'
task :reference do
sh 'puppet strings generate --format markdown'
end

0 comments on commit 75e9166

Please sign in to comment.