|
1 | 1 | --- |
2 | | -resource_reference: true |
3 | | -multi_package_resource: true |
4 | | -resources_common_guards: true |
5 | | -resources_common_notification: true |
6 | | -resources_common_properties: true |
7 | | -resource: apt_package |
8 | | -resource_description_list: |
9 | | -- markdown: Use the **apt_package** resource to manage packages on Debian, Ubuntu, |
10 | | - and other platforms that use the APT package system. |
11 | | -- notes_resource_based_on_package: true |
12 | | -syntax_description: | |
13 | | - An **apt_package** resource block manages a package on a node, |
14 | | - typically by installing it. The simplest use of the **apt_package** resource is: |
15 | | -
|
16 | | - ```ruby |
17 | | - apt_package 'package_name' |
18 | | - ``` |
19 | | -
|
20 | | - which will install the named package using all of the default options and the default action of `:install`. |
21 | 2 | syntax_full_code_block: |- |
22 | 3 | apt_package 'name' do |
23 | 4 | default_release String |
@@ -63,6 +44,8 @@ properties_list: |
63 | 44 | required: false |
64 | 45 | description_list: |
65 | 46 | - markdown: 'The default release. For example: `stable`.' |
| 47 | + - file: 'content/reusable/md/notes_resource_based_on_package.md' |
| 48 | + - markdown: '**TESTING** Additional text for testing. **TESTING** ' |
66 | 49 | - property: options |
67 | 50 | ruby_type: String, Array |
68 | 51 | required: false |
@@ -107,34 +90,6 @@ properties_list: |
107 | 90 | - markdown: The amount of time (in seconds) to wait before timing out. |
108 | 91 | - property: version |
109 | 92 | ruby_type: String, Array |
110 | | - required: false |
| 93 | + required: true |
111 | 94 | description_list: |
112 | 95 | - markdown: The version of a package to be installed or upgraded. |
113 | | -examples: | |
114 | | - **Install a package using package manager**: |
115 | | -
|
116 | | - ```ruby |
117 | | - apt_package 'name of package' do |
118 | | - action :install |
119 | | - end |
120 | | - ``` |
121 | | -
|
122 | | - **Install a package without specifying the default action**: |
123 | | -
|
124 | | - ```ruby |
125 | | - apt_package 'name of package' |
126 | | - ``` |
127 | | -
|
128 | | - **Install multiple packages at once**: |
129 | | -
|
130 | | - ```ruby |
131 | | - apt_package %w(package1 package2 package3) |
132 | | - ``` |
133 | | -
|
134 | | - **Install without using recommend packages as a dependency**: |
135 | | -
|
136 | | - ```ruby |
137 | | - package 'apache2' do |
138 | | - options '--no-install-recommends' |
139 | | - end |
140 | | - ``` |
0 commit comments