Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: bastelfreak/puppetlabs-postgresql
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: puppetlabs/puppetlabs-postgresql
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Able to merge. These branches can be automatically merged.

Commits on Jun 12, 2015

  1. Loosen the apt dependency

    Once puppetlabs-apt 2.1.0 is released (2015-06-16) the postgresql module
    will be compatible with apt 1.x (>= 1.8.0) and 2.x (>= 2.1.0). This will
    *not* work with puppetlabs-apt 2.0.x.
    Morgan Haskel committed Jun 12, 2015
    Copy the full SHA
    e3bcfcd View commit details
  2. Tighten the concat dependency

    Since concat 2.0.x releases have been removed
    Morgan Haskel committed Jun 12, 2015
    Copy the full SHA
    f9e5d36 View commit details

Commits on Jun 16, 2015

  1. Merge pull request puppetlabs#644 from mhaskel/loosen_apt_dependency

    Update dependencies
    bmjen committed Jun 16, 2015
    Copy the full SHA
    928779b View commit details

Commits on Jun 22, 2015

  1. Release 4.4.0 prep

    bmjen committed Jun 22, 2015
    Copy the full SHA
    f09ebab View commit details
  2. Merge pull request puppetlabs#646 from bmjen/4.4.0-prep

    Release 4.4.0 prep
    Morgan Haskel committed Jun 22, 2015
    Copy the full SHA
    35d474f View commit details
  3. Copy the full SHA
    db9c778 View commit details
  4. Merge pull request puppetlabs#647 from bmjen/unpin-apt

    Unpins apt 1.8 dependency in fixtures.yml and spec_helper_acceptance.
    Morgan Haskel committed Jun 22, 2015
    Copy the full SHA
    ad3e042 View commit details
  5. (maint) Add beaker-puppet_install_helper and fix fact bug

    - Issue with fact() was being called against default instead of
      using fact_on when iterating against each host, also was installing 3.8.1 despite
      specifying PUPPET_VERSION=1.1.1 so updated to use beaker-puppet_install_helper
    Travis Fields authored and bmjen committed Jun 22, 2015
    Copy the full SHA
    1315a33 View commit details
  6. Copy snakeoil certificate and key instead of symlinking

    Since postgresql-9.1_9.1.16-0+deb7u1 on wheezy, postgresql can't read
    snakeoil certificate as symlink anymore, so server does not restart.
    This patch copies cert and key instead of symlinking so that it works
    again.
    mcanevet authored and bmjen committed Jun 22, 2015
    Copy the full SHA
    69c80b4 View commit details
  7. Copy the full SHA
    2ba897f View commit details

Commits on Jun 23, 2015

  1. Copy the full SHA
    04d59ee View commit details
  2. Merge pull request puppetlabs#648 from bmjen/sync-with-master

    Sync with master
    jonnytdevops committed Jun 23, 2015
    Copy the full SHA
    f6c1c85 View commit details

Commits on Jun 29, 2015

  1. (FM-2923) install net-tools for tests

    serverspec's be_listening uses net-tools' netstat utility to check for
    open ports. This was puleld in until recently by puppet-agent packages.
    Now this has changed and we need to install this manually.
    DavidS authored and bmjen committed Jun 29, 2015
    Copy the full SHA
    c7b4ebb View commit details
  2. Merge pull request puppetlabs#653 from bmjen/update-from-master

    (FM-2923) install net-tools for tests
    Morgan Haskel committed Jun 29, 2015
    Copy the full SHA
    5b8625a View commit details
  3. Copy the full SHA
    ea1c9c7 View commit details
  4. Merge pull request puppetlabs#655 from bmjen/update-changelog

    updates release date on CHANGELOG
    Morgan Haskel committed Jun 29, 2015
    Copy the full SHA
    a994648 View commit details

Commits on Jun 30, 2015

  1. Copy the full SHA
    ec60db4 View commit details
  2. Merge pull request puppetlabs#657 from bmjen/recovery-test

    adds acceptance tests for postgresql::server::recovery resource
    hunner committed Jun 30, 2015
    Copy the full SHA
    5010861 View commit details
  3. Copy the full SHA
    a861997 View commit details
  4. Merge pull request puppetlabs#658 from bmjen/recovery-test

    fixes postgresql::server:recovery acceptance tests
    Morgan Haskel committed Jun 30, 2015
    Copy the full SHA
    ba8880a View commit details

Commits on Jul 1, 2015

  1. (MODULES-2181) Fix variable scope for systemd-override

    $manage_package_repo wasn't in scope for the template systemd-override.erb
    This was causing all RHEL7 systems with manage_package_repo on to fail on
    startup using systemctl, as the proper path to the original service file
    is set incorrectly.
    
    This patch adds the manage_package_repo to the top of the ::config class,
    and adds some basic tests in config_spec.rb to ensure we don't regress on
    this.
    
    Signed-off-by: Ken Barber <ken@bob.sh>
    kbarber committed Jul 1, 2015
    Copy the full SHA
    c21e2e5 View commit details
  2. Merge pull request puppetlabs#659 from kbarber/maint/4.4.x/fix_system…

    …d_override_for_manage_package_repo
    
    (MODULES-2181) Fix variable scope for systemd-override
    DavidS committed Jul 1, 2015
    Copy the full SHA
    e40f837 View commit details
  3. Copy the full SHA
    e0ded2e View commit details
  4. Merge pull request puppetlabs#660 from DavidS/release-prep-4.4.1

    Increment version number for 4.4.1
    bmjen committed Jul 1, 2015
    Copy the full SHA
    9063dd5 View commit details

Commits on Jul 6, 2015

  1. (MODULES-2185) Fix withenv execution under Puppet 2.7

    When executing a command with environment variables, the withenv helper
    under Puppet 2.7 is on Puppet::Util::Execution and on 3.0 to 3.3, it's
    on Puppet::Util.
    Dominic Cleal authored and bmjen committed Jul 6, 2015
    Copy the full SHA
    6c0a2e4 View commit details
  2. Release 4.4.2 prep

    bmjen committed Jul 6, 2015
    Copy the full SHA
    e3c707c View commit details
  3. Merge pull request puppetlabs#667 from bmjen/4.4.2-prep

    4.4.2 prep
    Morgan Haskel committed Jul 6, 2015
    Copy the full SHA
    99800c9 View commit details
  4. Copy the full SHA
    3589021 View commit details
  5. Merge pull request puppetlabs#668 from bmjen/4.4.2-prep

    updates metadata.json to include support for pe 2015.2
    Morgan Haskel committed Jul 6, 2015
    Copy the full SHA
    602c753 View commit details

Commits on Jul 7, 2015

  1. Fix incorrect metadata

    hunner committed Jul 7, 2015
    Copy the full SHA
    54c4ec9 View commit details
  2. Merge pull request puppetlabs#669 from hunner/fix_metadata

    Fix incorrect metadata
    Morgan Haskel committed Jul 7, 2015
    Copy the full SHA
    c1564a0 View commit details

Commits on Jul 9, 2015

  1. Copy the full SHA
    2d8298e View commit details

Commits on Jul 10, 2015

  1. Allow for undefined PostGIS version.

    Steve Maddison committed Jul 10, 2015
    Copy the full SHA
    cda13df View commit details

Commits on Jul 13, 2015

  1. Merge pull request puppetlabs#670 from hunner/mergeback

    Mergeback 4.4.x to master
    Morgan Haskel committed Jul 13, 2015
    Copy the full SHA
    7cb4b9d View commit details

Commits on Jul 23, 2015

  1. Fix postgis default package name on RedHat

    The /5/ regex on $::operatingsystemrelease would match any distro release
    with a 5 in it, including for example Centos "7.1.1503". Given the commit
    message for this regex, it was meant to match RedHat / Centos 5.x.
    ckaenzig committed Jul 23, 2015
    Copy the full SHA
    1956881 View commit details

Commits on Jul 24, 2015

  1. Prep 4.5.0

    hunner committed Jul 24, 2015
    Copy the full SHA
    584e3c9 View commit details
  2. Merge pull request puppetlabs#676 from hunner/prep_4.5.0

    Prep 4.5.0
    Morgan Haskel committed Jul 24, 2015
    Copy the full SHA
    c168e06 View commit details

Commits on Jul 29, 2015

  1. (MODULES-2211) Fixed systemd-override for RedHat systems with unmanag…

    …ed Yum repos
    
    This change lets the params class compute the name of the correct systemd unit file
    via $service_name.
    cavaliercoder committed Jul 29, 2015
    Copy the full SHA
    f929cad View commit details

Commits on Aug 10, 2015

  1. Merge pull request puppetlabs#674 from ckaenzig/fix-postgis-pkg-name

    Fix postgis default package name on RedHat
    jonnytdevops committed Aug 10, 2015
    Copy the full SHA
    0ccf2b6 View commit details
  2. Merge pull request puppetlabs#671 from sanoma-technology/master

    Allow for undefined PostGIS version.
    jonnytdevops committed Aug 10, 2015
    Copy the full SHA
    7981b09 View commit details

Commits on Aug 11, 2015

  1. Decouple pg_hba_rule from postgresql::server

    This change allows the pg_hba_rule defined type to be used
    even if you have not included postgresql::server.
    
    By default it will continue with the same behavior as before,
    however, you can now specify some extra parameters that were
    previously coming directly from postgresql::server
    npwalker committed Aug 11, 2015
    Copy the full SHA
    25c1bae View commit details

Commits on Aug 12, 2015

  1. Merge pull request puppetlabs#678 from npwalker/modules_2321_improve_…

    …pg_hba_rule
    
    Decouple pg_hba_rule from postgresql::server
    DavidS committed Aug 12, 2015
    Copy the full SHA
    4b93634 View commit details
  2. adding proxy option for yum repositories

    Alexander Brovman committed Aug 12, 2015
    Copy the full SHA
    1eb45d0 View commit details
  3. Merge pull request puppetlabs#672 from GoozeyX/addproxyoption

    Add proxy option for yum repositories
    DavidS committed Aug 12, 2015
    Copy the full SHA
    213bb75 View commit details

Commits on Aug 19, 2015

  1. removed inherits postgresql::params

    inheriting postgresql::params creates a cycle, because postgresql::repo gets instantiated in postgresql::globals which is inherited by postgresql::params. Also postgresql::params are not needed, because only version is used by postgresql::repo, postgresql::repo::yum_postgresql_org and postgresql::repo::apt_postgresql_org and it get set in postgresql::globals by a resource like class instantiation.
    vicinus committed Aug 19, 2015
    Copy the full SHA
    1507123 View commit details

Commits on Aug 20, 2015

  1. merge 4.5.0 release branch

    Conflicts:
    	CHANGELOG.md
    tphoney committed Aug 20, 2015
    Copy the full SHA
    750a8b6 View commit details
  2. 4_6_0 release prep

    tphoney committed Aug 20, 2015
    Copy the full SHA
    622b690 View commit details
  3. Merge pull request puppetlabs#682 from tphoney/release_prep_4_6_0

    4_6_0 release prep
    cyberious committed Aug 20, 2015
    Copy the full SHA
    43fd0e8 View commit details

Commits on Aug 27, 2015

  1. (MODULES-661) Remote DB support

    Adds connection-settings (for remote DB support) when creating DB resources.
    
    Connection-settings allows a hash of options that can be used
    when connecting the a remote DB (such as PGHOST, PGPORT, PGPASSWORD
    PGSSLKEY) and a special option DBVERSION indicating the version
    of the remote database.
    
    Including
    - Puppet updates
    - Documentation updates
    - RSpec unit test updates
    - RSpec acceptance test updates
    - Some test coverage for connection-settings
    - Working acceptance test...
        Basic vagrant setup:
        * Two boxes, server and client
        * Runs puppet code to on server to setup a postgres server that allows all connections and md5 connections, creates db puppet to look at
        * Runs puppet code on client to make a server that a psql command can be run against puppet db on other server
        * Does some fancy stuff to get the fact of the IP from the first server to connect to
    - Backwards compatible, with deprecation warnings around old parameters
    Tom Hey authored and DavidS committed Aug 27, 2015
    Copy the full SHA
    6a29636 View commit details
  2. Merge pull request puppetlabs#688 from DavidS/remote-postgres-control

    (MODULES-661) Remote DB support
    tphoney committed Aug 27, 2015
    Copy the full SHA
    405630a View commit details
Showing with 20,692 additions and 6,594 deletions.
  1. +6 −0 .devcontainer/Dockerfile
  2. +38 −0 .devcontainer/README.md
  3. +17 −0 .devcontainer/devcontainer.json
  4. +11 −7 .fixtures.yml
  5. +5 −0 .gitattributes
  6. +15 −0 .github/pull_request_template.md
  7. +21 −0 .github/workflows/ci.yml
  8. +15 −0 .github/workflows/mend.yml
  9. +20 −0 .github/workflows/nightly.yml
  10. +9 −0 .github/workflows/release.yml
  11. +15 −0 .github/workflows/release_prep.yml
  12. +34 −8 .gitignore
  13. +18 −0 .gitpod.Dockerfile
  14. +9 −0 .gitpod.yml
  15. +51 −0 .pdkignore
  16. +0 −23 .project
  17. +3 −0 .puppet-lint.rc
  18. +2 −0 .rspec
  19. +731 −0 .rubocop.yml
  20. +34 −0 .rubocop_todo.yml
  21. +48 −6 .sync.yml
  22. +0 −24 .travis.yml
  23. +6 −0 .vscode/extensions.json
  24. +1 −0 .yardopts
  25. +857 −573 CHANGELOG.md
  26. +2 −0 CODEOWNERS
  27. +2 −219 CONTRIBUTING.md
  28. +64 −34 Gemfile
  29. +976 −0 HISTORY.md
  30. +1 −1 LICENSE
  31. +19 −4 NOTICE
  32. +493 −1,025 README.md
  33. +4,932 −0 REFERENCE.md
  34. +9 −8 Rakefile
  35. +1 −0 data/common.yaml
  36. +3 −0 data/os/Ubuntu/18.04.yaml
  37. +77 −0 files/ACCC4CF8.asc
  38. +39 −28 files/RPM-GPG-KEY-PGDG
  39. +41 −0 files/RPM-GPG-KEY-PGDG-7
  40. +5 −2 files/validate_postgresql_connection.sh
  41. +14 −0 functions/default.pp
  42. +21 −0 hiera.yaml
  43. +57 −0 lib/puppet/functions/postgresql/postgresql_acls_to_resources_hash.rb
  44. +30 −0 lib/puppet/functions/postgresql/postgresql_escape.rb
  45. +87 −0 lib/puppet/functions/postgresql/postgresql_password.rb
  46. +14 −0 lib/puppet/functions/postgresql/prepend_sql_password.rb
  47. +12 −0 lib/puppet/functions/postgresql_escape.rb
  48. +12 −0 lib/puppet/functions/postgresql_password.rb
  49. +0 −76 lib/puppet/parser/functions/postgresql_acls_to_resources_hash.rb
  50. +0 −25 lib/puppet/parser/functions/postgresql_escape.rb
  51. +0 −18 lib/puppet/parser/functions/postgresql_password.rb
  52. +0 −42 lib/puppet/provider/postgresql_conf/parsed.rb
  53. +158 −0 lib/puppet/provider/postgresql_conf/ruby.rb
  54. +43 −0 lib/puppet/provider/postgresql_conn_validator/ruby.rb
  55. +39 −47 lib/puppet/provider/postgresql_psql/ruby.rb
  56. +24 −35 lib/puppet/provider/postgresql_replication_slot/ruby.rb
  57. +27 −15 lib/puppet/type/postgresql_conf.rb
  58. +94 −0 lib/puppet/type/postgresql_conn_validator.rb
  59. +70 −36 lib/puppet/type/postgresql_psql.rb
  60. +10 −7 lib/puppet/type/postgresql_replication_slot.rb
  61. +57 −0 lib/puppet/util/postgresql_validator.rb
  62. +153 −0 manifests/backup/pg_dump.pp
  63. +28 −18 manifests/client.pp
  64. +20 −0 manifests/dnfmodule.pp
  65. +244 −85 manifests/globals.pp
  66. +19 −10 manifests/lib/devel.pp
  67. +15 −9 manifests/lib/docs.pp
  68. +13 −9 manifests/lib/java.pp
  69. +11 −7 manifests/lib/perl.pp
  70. +11 −7 manifests/lib/python.pp
  71. +122 −78 manifests/params.pp
  72. +9 −5 manifests/repo.pp
  73. +26 −12 manifests/repo/apt_postgresql_org.pp
  74. +30 −7 manifests/repo/yum_postgresql_org.pp
  75. +239 −70 manifests/server.pp
  76. +29 −177 manifests/server/config.pp
  77. +86 −106 manifests/server/config_entry.pp
  78. +19 −14 manifests/server/contrib.pp
  79. +86 −64 manifests/server/database.pp
  80. +35 −14 manifests/server/database_grant.pp
  81. +50 −20 manifests/server/db.pp
  82. +175 −0 manifests/server/default_privileges.pp
  83. +130 −35 manifests/server/extension.pp
  84. +364 −115 manifests/server/grant.pp
  85. +54 −0 manifests/server/grant_role.pp
  86. +20 −123 manifests/server/initdb.pp
  87. +2 −4 manifests/server/install.pp
  88. +262 −0 manifests/server/instance/config.pp
  89. +204 −0 manifests/server/instance/initdb.pp
  90. +48 −0 manifests/server/instance/late_initdb.pp
  91. +67 −0 manifests/server/instance/passwd.pp
  92. +16 −0 manifests/server/instance/reload.pp
  93. +74 −0 manifests/server/instance/service.pp
  94. +40 −0 manifests/server/instance/systemd.pp
  95. +15 −0 manifests/server/late_initdb.pp
  96. +9 −33 manifests/server/passwd.pp
  97. +71 −31 manifests/server/pg_hba_rule.pp
  98. +29 −13 manifests/server/pg_ident_rule.pp
  99. +13 −12 manifests/server/plperl.pp
  100. +15 −12 manifests/server/plpython.pp
  101. +14 −13 manifests/server/postgis.pp
  102. +62 −0 manifests/server/reassign_owned_by.pp
  103. +80 −24 manifests/server/recovery.pp
  104. +4 −11 manifests/server/reload.pp
  105. +180 −79 manifests/server/role.pp
  106. +56 −40 manifests/server/schema.pp
  107. +13 −43 manifests/server/service.pp
  108. +40 −20 manifests/server/table_grant.pp
  109. +69 −35 manifests/server/tablespace.pp
  110. +140 −0 manifests/server_instance.pp
  111. +0 −76 manifests/validate_db_connection.pp
  112. +62 −30 metadata.json
  113. +2 −0 pdk.yaml
  114. +72 −0 provision.yaml
  115. +0 −37 spec/acceptance/00-utf8_encoding_spec.rb
  116. +23 −0 spec/acceptance/aaa_spec.rb
  117. +15 −13 spec/acceptance/alternative_port_spec.rb
  118. +41 −49 spec/acceptance/db_spec.rb
  119. +11 −10 spec/acceptance/default_parameters_spec.rb
  120. +0 −10 spec/acceptance/nodesets/centos-510-x64.yml
  121. +0 −10 spec/acceptance/nodesets/centos-59-x64.yml
  122. +0 −12 spec/acceptance/nodesets/centos-64-x64-pe.yml
  123. +0 −10 spec/acceptance/nodesets/centos-64-x64.yml
  124. +0 −10 spec/acceptance/nodesets/centos-65-x64.yml
  125. +0 −10 spec/acceptance/nodesets/debian-607-x64.yml
  126. +0 −10 spec/acceptance/nodesets/debian-73-x64.yml
  127. +0 −10 spec/acceptance/nodesets/default.yml
  128. +0 −10 spec/acceptance/nodesets/ubuntu-server-10044-x64.yml
  129. +0 −10 spec/acceptance/nodesets/ubuntu-server-12042-x64.yml
  130. +0 −11 spec/acceptance/nodesets/ubuntu-server-1404-x64.yml
  131. +47 −0 spec/acceptance/overridden_settings_spec.rb
  132. +73 −0 spec/acceptance/postgresql_conn_validator_spec.rb
  133. +124 −149 spec/acceptance/postgresql_psql_spec.rb
  134. +28 −0 spec/acceptance/server/config_entry_spec.rb
  135. +383 −0 spec/acceptance/server/default_privileges_spec.rb
  136. +32 −0 spec/acceptance/server/deferred_pw_role_spec.rb
  137. +173 −0 spec/acceptance/server/grant_role_spec.rb
  138. +494 −0 spec/acceptance/server/grant_spec.rb
  139. +133 −0 spec/acceptance/server/reassign_owned_by_spec.rb
  140. +30 −27 spec/acceptance/server/recovery_spec.rb
  141. +34 −0 spec/acceptance/server/role_spec.rb
  142. +51 −51 spec/acceptance/server/schema_spec.rb
  143. +161 −0 spec/acceptance/server_instance_spec.rb
  144. +28 −0 spec/acceptance/sql_task_spec.rb
  145. +11 −12 spec/acceptance/z_alternative_pgdata_spec.rb
  146. +61 −0 spec/classes/client_spec.rb
  147. +86 −0 spec/classes/globals_spec.rb
  148. +59 −0 spec/classes/lib/devel_spec.rb
  149. +43 −0 spec/classes/lib/java_spec.rb
  150. +27 −0 spec/classes/lib/perl_spec.rb
  151. +31 −0 spec/classes/lib/pgdocs_spec.rb
  152. +38 −0 spec/classes/lib/python_spec.rb
  153. +13 −0 spec/classes/params_spec.rb
  154. +36 −0 spec/classes/repo_spec.rb
  155. +209 −0 spec/classes/server/config_spec.rb
  156. +50 −0 spec/classes/server/contrib_spec.rb
  157. +108 −0 spec/classes/server/initdb_spec.rb
  158. +37 −0 spec/classes/server/plperl_spec.rb
  159. +37 −0 spec/classes/server/plpython_spec.rb
  160. +31 −0 spec/classes/server/postgis_spec.rb
  161. +14 −0 spec/classes/server/service_spec.rb
  162. +339 −0 spec/classes/server_spec.rb
  163. +9 −0 spec/default_facts.yml
  164. +82 −0 spec/defines/server/config_entry_spec.rb
  165. +45 −0 spec/defines/server/database_grant_spec.rb
  166. +72 −0 spec/defines/server/database_spec.rb
  167. +60 −0 spec/defines/server/db_spec.rb
  168. +394 −0 spec/defines/server/default_privileges_spec.rb
  169. +242 −0 spec/defines/server/extension_spec.rb
  170. +102 −0 spec/defines/server/grant_role_spec.rb
  171. +422 −0 spec/defines/server/grant_spec.rb
  172. +23 −0 spec/defines/server/instance/config.rb
  173. +23 −0 spec/defines/server/instance/initdb.rb
  174. +23 −0 spec/defines/server/instance/late_initdb.rb
  175. +23 −0 spec/defines/server/instance/passwd.rb
  176. +23 −0 spec/defines/server/instance/reload.rb
  177. +23 −0 spec/defines/server/instance/service.rb
  178. +273 −0 spec/defines/server/pg_hba_rule_spec.rb
  179. +59 −0 spec/defines/server/pg_ident_rule_spec.rb
  180. +36 −0 spec/defines/server/reassign_owned_by_spec.rb
  181. +109 −0 spec/defines/server/recovery_spec.rb
  182. +402 −0 spec/defines/server/role_spec.rb
  183. +35 −0 spec/defines/server/schema_spec.rb
  184. +27 −0 spec/defines/server/table_grant_spec.rb
  185. +54 −0 spec/defines/server/tablespace_spec.rb
  186. +234 −0 spec/defines/server_instance_spec.rb
  187. +48 −0 spec/functions/postgresql_default_spec.rb
  188. +7 −0 spec/functions/postgresql_escape_spec.rb
  189. +9 −0 spec/functions/postgresql_password_spec.rb
  190. +151 −0 spec/functions/postgresql_postgresql_acls_to_resources_hash_spec.rb
  191. +7 −0 spec/functions/postgresql_postgresql_escape_spec.rb
  192. +9 −0 spec/functions/postgresql_postgresql_password_spec.rb
  193. +0 −6 spec/spec.opts
  194. +63 −19 spec/spec_helper.rb
  195. +4 −99 spec/spec_helper_acceptance.rb
  196. +99 −0 spec/spec_helper_acceptance_local.rb
  197. +265 −0 spec/spec_helper_local.rb
  198. +48 −0 spec/type_aliases/pg_hba_rule_spec.rb
  199. +42 −0 spec/type_aliases/pg_hba_rule_type_spec.rb
  200. +69 −0 spec/type_aliases/pg_hba_rules_spec.rb
  201. +0 −47 spec/unit/classes/client_spec.rb
  202. +0 −30 spec/unit/classes/globals_spec.rb
  203. +0 −54 spec/unit/classes/lib/devel_spec.rb
  204. +0 −43 spec/unit/classes/lib/java_spec.rb
  205. +0 −31 spec/unit/classes/lib/perl_spec.rb
  206. +0 −29 spec/unit/classes/lib/pgdocs_spec.rb
  207. +0 −31 spec/unit/classes/lib/python_spec.rb
  208. +0 −12 spec/unit/classes/params_spec.rb
  209. +0 −19 spec/unit/classes/repo_spec.rb
  210. +0 −55 spec/unit/classes/server/config_spec.rb
  211. +0 −44 spec/unit/classes/server/contrib_spec.rb
  212. +0 −36 spec/unit/classes/server/initdb_spec.rb
  213. +0 −47 spec/unit/classes/server/plperl_spec.rb
  214. +0 −47 spec/unit/classes/server/plpython_spec.rb
  215. +0 −44 spec/unit/classes/server/postgis_spec.rb
  216. +0 −120 spec/unit/classes/server_spec.rb
  217. +0 −109 spec/unit/defines/server/config_entry_spec.rb
  218. +0 −34 spec/unit/defines/server/database_grant_spec.rb
  219. +0 −31 spec/unit/defines/server/database_spec.rb
  220. +0 −58 spec/unit/defines/server/db_spec.rb
  221. +0 −93 spec/unit/defines/server/extension_spec.rb
  222. +0 −79 spec/unit/defines/server/grant_spec.rb
  223. +0 −198 spec/unit/defines/server/pg_hba_rule_spec.rb
  224. +0 −66 spec/unit/defines/server/pg_ident_rule_spec.rb
  225. +0 −113 spec/unit/defines/server/recovery_spec.rb
  226. +0 −45 spec/unit/defines/server/role_spec.rb
  227. +0 −32 spec/unit/defines/server/schema_spec.rb
  228. +0 −35 spec/unit/defines/server/table_grant_spec.rb
  229. +0 −31 spec/unit/defines/server/tablespace_spec.rb
  230. +0 −66 spec/unit/defines/validate_db_connection_spec.rb
  231. +0 −137 spec/unit/functions/postgresql_acls_to_resources_hash_spec.rb
  232. +0 −10 spec/unit/functions/postgresql_escape_spec.rb
  233. +0 −6 spec/unit/functions/postgresql_password_spec.rb
  234. +0 −129 spec/unit/provider/postgresql_conf/parsed_spec.rb
  235. +80 −0 spec/unit/provider/postgresql_conf/ruby_spec.rb
  236. +63 −0 spec/unit/puppet/provider/postgresql_conn_validator/ruby_spec.rb
  237. +74 −51 spec/unit/puppet/provider/postgresql_psql/ruby_spec.rb
  238. +51 −36 spec/unit/puppet/provider/postgresql_replication_slot/ruby_spec.rb
  239. +49 −0 spec/unit/puppet/type/postgresql_conn_validator.rb
  240. +176 −147 spec/unit/puppet/type/postgresql_psql_spec.rb
  241. +4 −2 spec/unit/puppet/type/postgresql_replication_slot_spec.rb
  242. +97 −23 spec/unit/type/postgresql_conf_spec.rb
  243. +30 −0 tasks/sql.json
  244. +37 −0 tasks/sql.rb
  245. +116 −0 templates/pg_dump.sh.epp
  246. +0 −5 templates/pg_hba_rule.conf
  247. +16 −0 templates/pg_hba_rule.conf.epp
  248. +0 −5 templates/pg_ident_rule.conf
  249. +12 −0 templates/pg_ident_rule.conf.epp
  250. +0 −47 templates/recovery.conf
  251. +64 −0 templates/recovery.conf.epp
  252. +18 −0 templates/systemd-override.conf.epp
  253. +0 −8 templates/systemd-override.erb
  254. +14 −0 types/pg_hba_rule.pp
  255. +10 −0 types/pg_hba_rule_address.pp
  256. +3 −0 types/pg_hba_rule_type.pp
  257. +3 −0 types/pg_hba_rules.pp
  258. +2 −0 types/pg_password_encryption.pp
6 changes: 6 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM puppet/pdk:latest

# [Optional] Uncomment this section to install additional packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>

38 changes: 38 additions & 0 deletions .devcontainer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# devcontainer


For format details, see https://aka.ms/devcontainer.json.

For config options, see the README at:
https://github.com/microsoft/vscode-dev-containers/tree/v0.140.1/containers/puppet

``` json
{
"name": "Puppet Development Kit (Community)",
"dockerFile": "Dockerfile",

// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.profiles.linux": {
"bash": {
"path": "bash",
}
}
},

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"puppet.puppet-vscode",
"rebornix.Ruby"
],

// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "pdk --version",
}
```



17 changes: 17 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "Puppet Development Kit (Community)",
"dockerFile": "Dockerfile",

"settings": {
"terminal.integrated.profiles.linux": {
"bash": {
"path": "bash"
}
}
},

"extensions": [
"puppet.puppet-vscode",
"rebornix.Ruby"
]
}
18 changes: 11 additions & 7 deletions .fixtures.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
---
fixtures:
repositories:
apt:
repo: "https://github.com/puppetlabs/puppetlabs-apt.git"
branch: "1.8.x"
stdlib: "https://github.com/puppetlabs/puppetlabs-stdlib.git"
firewall: "https://github.com/puppetlabs/puppetlabs-firewall.git"
apt: "https://github.com/puppetlabs/puppetlabs-apt.git"
augeas_core: "https://github.com/puppetlabs/puppetlabs-augeas_core.git"
concat: "https://github.com/puppetlabs/puppetlabs-concat.git"
symlinks:
postgresql: "#{source_dir}"
cron_core: "https://github.com/puppetlabs/puppetlabs-cron_core.git"
facts: 'https://github.com/puppetlabs/puppetlabs-facts.git'
firewall: "https://github.com/puppetlabs/puppetlabs-firewall.git"
provision: "https://github.com/puppetlabs/provision.git"
puppet_agent: 'https://github.com/puppetlabs/puppetlabs-puppet_agent.git'
stdlib: "https://github.com/puppetlabs/puppetlabs-stdlib.git"
yumrepo_core: "https://github.com/puppetlabs/puppetlabs-yumrepo_core.git"
systemd: "https://github.com/voxpupuli/puppet-systemd.git"
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*.rb eol=lf
*.erb eol=lf
*.pp eol=lf
*.sh eol=lf
*.epp eol=lf
15 changes: 15 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## Summary
Provide a detailed description of all the changes present in this pull request.

## Additional Context
Add any additional context about the problem here.
- [ ] Root cause and the steps to reproduce. (If applicable)
- [ ] Thought process behind the implementation.

## Related Issues (if any)
Mention any related issues or pull requests.

## Checklist
- [ ] 🟢 Spec tests.
- [ ] 🟢 Acceptance tests.
- [ ] Manually verified. (For example `puppet apply`)
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "ci"

on:
pull_request:
branches:
- "main"
workflow_dispatch:

jobs:
Spec:
uses: "puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main"
with:
runs_on: "ubuntu-20.04"
secrets: "inherit"

Acceptance:
needs: Spec
uses: "puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main"
with:
runs_on: "ubuntu-20.04"
secrets: "inherit"
15 changes: 15 additions & 0 deletions .github/workflows/mend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "mend"

on:
pull_request:
branches:
- "main"
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

jobs:

mend:
uses: "puppetlabs/cat-github-actions/.github/workflows/mend_ruby.yml@main"
secrets: "inherit"
20 changes: 20 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "nightly"

on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

jobs:
Spec:
uses: "puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main"
with:
runs_on: "ubuntu-20.04"
secrets: "inherit"

Acceptance:
needs: Spec
uses: "puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main"
with:
runs_on: "ubuntu-20.04"
secrets: "inherit"
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: "Publish module"

on:
workflow_dispatch:

jobs:
release:
uses: "puppetlabs/cat-github-actions/.github/workflows/module_release.yml@main"
secrets: "inherit"
15 changes: 15 additions & 0 deletions .github/workflows/release_prep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "Release Prep"

on:
workflow_dispatch:
inputs:
version:
description: "Module version to be released. Must be a valid semver string. (1.2.3)"
required: true

jobs:
release_prep:
uses: "puppetlabs/cat-github-actions/.github/workflows/module_release_prep.yml@main"
with:
version: "${{ github.event.inputs.version }}"
secrets: "inherit"
42 changes: 34 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,35 @@
pkg/
Gemfile.lock
vendor/
spec/fixtures/
.vagrant/
.bundle/
coverage/
.idea/
.git/
.*.sw[op]
.metadata
.yardoc
.yardwarns
*.iml
/.bundle/
/.idea/
/.vagrant/
/coverage/
/bin/
/doc/
/Gemfile.local
/Gemfile.lock
/junit/
/log/
/pkg/
/spec/fixtures/manifests/
/spec/fixtures/modules/*
/tmp/
/vendor/
/.vendor/
/convert_report.txt
/update_report.txt
.DS_Store
.project
.envrc
/inventory.yaml
/spec/fixtures/litmus_inventory.yaml
.resource_types
.modules
.task_cache.json
.plan_cache.json
.rerun.json
bolt-debug.log
18 changes: 18 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM gitpod/workspace-full
RUN sudo wget https://apt.puppet.com/puppet-tools-release-bionic.deb && \
wget https://apt.puppetlabs.com/puppet6-release-bionic.deb && \
sudo dpkg -i puppet6-release-bionic.deb && \
sudo dpkg -i puppet-tools-release-bionic.deb && \
sudo apt-get update && \
sudo apt-get install -y pdk zsh puppet-agent && \
sudo apt-get clean && \
sudo rm -rf /var/lib/apt/lists/*
RUN sudo usermod -s $(which zsh) gitpod && \
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" && \
echo "plugins=(git gitignore github gem pip bundler python ruby docker docker-compose)" >> /home/gitpod/.zshrc && \
echo 'PATH="$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/puppetlabs/bin:/opt/puppetlabs/puppet/bin"' >> /home/gitpod/.zshrc && \
sudo /opt/puppetlabs/puppet/bin/gem install puppet-debugger hub -N && \
mkdir -p /home/gitpod/.config/puppet && \
/opt/puppetlabs/puppet/bin/ruby -r yaml -e "puts ({'disabled' => true}).to_yaml" > /home/gitpod/.config/puppet/analytics.yml
RUN rm -f puppet6-release-bionic.deb puppet-tools-release-bionic.deb
ENTRYPOINT /usr/bin/zsh
9 changes: 9 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
image:
file: .gitpod.Dockerfile

tasks:
- init: pdk bundle install

vscode:
extensions:
- puppet.puppet-vscode@1.2.0:f5iEPbmOj6FoFTOV6q8LTg==
51 changes: 51 additions & 0 deletions .pdkignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
.git/
.*.sw[op]
.metadata
.yardoc
.yardwarns
*.iml
/.bundle/
/.idea/
/.vagrant/
/coverage/
/bin/
/doc/
/Gemfile.local
/Gemfile.lock
/junit/
/log/
/pkg/
/spec/fixtures/manifests/
/spec/fixtures/modules/*
/tmp/
/vendor/
/.vendor/
/convert_report.txt
/update_report.txt
.DS_Store
.project
.envrc
/inventory.yaml
/spec/fixtures/litmus_inventory.yaml
.resource_types
.modules
.task_cache.json
.plan_cache.json
.rerun.json
bolt-debug.log
/.fixtures.yml
/Gemfile
/.gitattributes
/.github/
/.gitignore
/.pdkignore
/.puppet-lint.rc
/Rakefile
/rakelib/
/.rspec
/..yml
/.yardopts
/spec/
/.vscode/
/.sync.yml
/.devcontainer/
23 changes: 0 additions & 23 deletions .project

This file was deleted.

3 changes: 3 additions & 0 deletions .puppet-lint.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--relative
--no-anchor_resource-check
--no-params_empty_string_assignment-check
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--color
--format documentation
Loading