vchepkov
10/14/2022, 2:42 PMCorporate Gadfly
10/14/2022, 3:35 PMpdk bundle exec onceover show puppetfile, saw the following:
+-------------------------------------+-----------------+----------------+--------------+-------------+-----------------------------+
| Full Name | Current Version | Latest Version | Out of Date? | Endorsement | Superseded by |
+-------------------------------------+-----------------+----------------+--------------+-------------+-----------------------------+
| herculesteam-augeasproviders_core | 3.1.0 | 3.1.0 | No | approved | puppet-augeasproviders_core |
which led me to trying out the replacement puppet/augeasproviders_core.Corporate Gadfly
10/14/2022, 3:35 PMpdk bundle exec onceover show puppetfile, saw the following:
+-------------------------------------+-----------------+----------------+--------------+-------------+-----------------------------+
| Full Name | Current Version | Latest Version | Out of Date? | Endorsement | Superseded by |
+-------------------------------------+-----------------+----------------+--------------+-------------+-----------------------------+
| herculesteam-augeasproviders_core | 3.1.0 | 3.1.0 | No | approved | puppet-augeasproviders_core |
which led me to trying out the replacement puppet/augeasproviders_core.Allahshukur Ahmadzada
10/14/2022, 4:18 PMvchepkov
10/14/2022, 4:22 PMvchepkov
10/14/2022, 4:23 PMgetvarAllahshukur Ahmadzada
10/14/2022, 4:23 PMvchepkov
10/14/2022, 4:24 PMAllahshukur Ahmadzada
10/14/2022, 4:24 PMAllahshukur Ahmadzada
10/14/2022, 4:25 PMvchepkov
10/14/2022, 4:25 PM$mac_addr = upcase(getvar("macaddress_${interface}"))Allahshukur Ahmadzada
10/14/2022, 4:30 PMAllahshukur Ahmadzada
10/14/2022, 4:46 PMSlackbot
10/14/2022, 5:49 PMBrian Schonecker
10/14/2022, 5:49 PM<LocationMatch ^/sci/bi/(.*)$>
RequestHeader set X-BI-PATH /sci/bi/v1
ProxyPass <balancer://mycluster/bi/$1>
ProxyPassReverseCookieDomain "." "<http://sci2021.usva0017.oraclevcn.com|sci2021.usva0017.oraclevcn.com>"
</LocationMatch>
The only template in the apache module that references LocationMatch is ./templates/vhost/_security.erb. It appears that the only valid LocationMatch arguments that the apache module supports are SecRuleEngine, SecRuleRemoveById, SecRule, SecAction, SecRuleRemoveByMsg, SecRuleRemoveByTag and SecRequestBodyLimit as shown here. The vhosts define has a "custom_fragment" that can be defined. Is custom_fragment my go-to solution for what I'm trying to accomplish?Brian Schonecker
10/14/2022, 5:54 PM<LocationMatch ^/sci/bi/(.*)$>
RequestHeader set X-BI-PATH /sci/bi/v1
ProxyPass <balancer://mycluster/bi/$1>
ProxyPassReverseCookieDomain "." "<http://example.usva0017.oraclevcn.com|example.usva0017.oraclevcn.com>"
</LocationMatch>
The only template in the apache module that references LocationMatch is ./templates/vhost/_security.erb. It appears that the only valid LocationMatch arguments that the apache module supports are SecRuleEngine, SecRuleRemoveById, SecRule, SecAction, SecRuleRemoveByMsg, SecRuleRemoveByTag and SecRequestBodyLimit as shown here. The vhosts define has a "custom_fragment" that can be defined. Is custom_fragment my go-to solution for what I'm trying to accomplish?Anton Kayukov
10/14/2022, 6:26 PMfile { '/tmp/public-result':
source => '<http://localhost:8080/public>'
}
file { '/tmp/private-result':
source => '<http://abc:123@localhost:8080/private>'
}
Was it a bug in Puppet5?
P.S.: I know Puppet5 is not supported anymore.Lumiere
10/14/2022, 6:31 PMLumiere
10/14/2022, 6:31 PMAnton Kayukov
10/14/2022, 6:41 PMAnton Kayukov
10/14/2022, 7:16 PMssaini
10/14/2022, 8:01 PMversion: 5
defaults:
datadir: "/etc/puppetlabs/code/environments/%{environment}"
:hierarchy:
- name: "Normal data lookups"
data_hash: yaml_data # standard yaml backend
paths:
- "modules/%{::hg_module}/hieradata/nodes/%{::trusted.certname}.yaml"
- "modules/%{::hg_module}/hieradata/pools/%{::pool}.yaml"
- "modules/%{::hg_module}/hieradata/locations/%{::location}.yaml"
- "modules/%{::hg_module}/hieradata/hostgroups/%{::hg_level_1}/%{::hg_level_2}/%{::hg_level_3}.yaml"
- "modules/%{::hg_module}/hieradata/hostgroups/%{::hg_level_1}/%{::hg_level_2}.yaml"
- "modules/%{::hg_module}/hieradata/hostgroups/%{::hg_level_1}.yaml"
- "modules/%{::hg_module}/hieradata/os/%{facts.os.name}-%{facts.os.release.major}.yaml"
- "modules/%{::hg_module}/hieradata/os/%{facts.os.family}.yaml"
- "hieradata/locations/%{::location}.yaml"
- "hieradata/os/%{facts.os.name}-%{facts.os.release.major}.yaml"
- "hieradata/os/%{facts.os.family}.yaml"
- "hieradata/global.yaml"
I have a use case to deploy several hosts using a particular module because 100% of the code base has been written, but in this particular module the locations defines what NFS to mounts (different for each location), and the use case I have cannot mount those NFS because they’re not accessible. Thus puppet keeps trying to mount but errors because access denied.
Is it possible to somehow apply a logic either at nodes level “to ignore the locations data lookup” or should I approach this in the different way. Ultimately, I am trying to avoid duplicating the module just so the NFS is not defined?ssaini
10/14/2022, 8:08 PMversion: 5
defaults:
datadir: "/etc/puppetlabs/code/environments/%{environment}"
:hierarchy:
- name: "Normal data lookups"
data_hash: yaml_data # standard yaml backend
paths:
- "modules/%{::hg_module}/hieradata/nodes/%{::trusted.certname}.yaml"
- "modules/%{::hg_module}/hieradata/pools/%{::pool}.yaml"
- "modules/%{::hg_module}/hieradata/locations/%{::location}.yaml"
- "modules/%{::hg_module}/hieradata/hostgroups/%{::hg_level_1}/%{::hg_level_2}/%{::hg_level_3}.yaml"
- "modules/%{::hg_module}/hieradata/hostgroups/%{::hg_level_1}/%{::hg_level_2}.yaml"
- "modules/%{::hg_module}/hieradata/hostgroups/%{::hg_level_1}.yaml"
- "modules/%{::hg_module}/hieradata/os/%{facts.os.name}-%{facts.os.release.major}.yaml"
- "modules/%{::hg_module}/hieradata/os/%{facts.os.family}.yaml"
- "hieradata/locations/%{::location}.yaml"
- "hieradata/os/%{facts.os.name}-%{facts.os.release.major}.yaml"
- "hieradata/os/%{facts.os.family}.yaml"
- "hieradata/global.yaml"
I have a use case to deploy several hosts using a particular module because 100% of the code base has been written, but in this particular module the locations defines what NFS to mounts (different for each location), and the use case I have cannot mount those NFS because they’re not accessible. Thus puppet keeps trying to mount but errors because access denied.
Is it possible to somehow apply a logic either at nodes level “to ignore the locations data lookup” or should I approach this in the different way. Ultimately, I am trying to avoid duplicating the module just so the NFS is not defined?helindbe
10/14/2022, 8:12 PMssaini
10/14/2022, 8:17 PMvchepkov
10/14/2022, 8:18 PMvchepkov
10/14/2022, 8:20 PMvchepkov
10/14/2022, 8:21 PMlocations/%{facts.location}.yamlvchepkov
10/14/2022, 8:24 PMlocations/%{facts.location}.yamlhelindbe
10/14/2022, 8:32 PM