Comments (5)
Thanks for reporting that @boydj ! Would you mind submitting a PR to re-add those lines?
from supermarket-omnibus-cookbook.
I think if these lines were to go somewhere, they would be in the omnibus-supermarket recipe that is internal to the omnibus package. I propose that this issue move to the chef/supermarket
repo under the guise of "handle PG database ownership and enabling PG extensions when PG is run external to the omnibus install." The solution might be something other than flipping these resources off if omnibus'd-postgresql is disabled. For example, I can picture adding to the database recipe a .pgpass
file for psql
commands to pick up and use to authenticate to wherever PG is running during these configuration steps.
from supermarket-omnibus-cookbook.
Looking a bit closer at the error, the specific error has to do with the expectation that the execute resource for the psql command will be run with an OS user that matches the name of a user within the PostgreSQL service who has the privileges to install extensions. This is true for the default install—supermarket
OS service account and supermarket
PG database user—but not necessarily true for a PG database configured elsewhere. In @boydj's case, there is a chef
user in the RDS database, but that an OS user of the same name does not exist on the Supermarket host (and also maybe shouldn't).
I sense that the bug here is assuming that an OS user for the command to install extensions will match an admin DB user. We should spend a little time unpacking that.
from supermarket-omnibus-cookbook.
I can confirm that changing the DB user to match a system user, in this case, supermarket, allows installation to complete successfully.
from supermarket-omnibus-cookbook.
Thanks for the confirmation, @boydj. That helps shape our options. I see them as:
- document the current expectation—requirement, really—that the database username match the OS service account name, defaulted to
supermarket
(increased cognitive load on the humans performing an install) - update the omnibus package's internal cookbook to provide the flexibility to private Supermarkets to pick the name of the database user (increased code complexity)
Are those reasonable? Are there others?
from supermarket-omnibus-cookbook.
Related Issues (20)
- incorrect yum repo file created for "chef-stable" repo on AWS Linux HOT 1
- Remove dependency on fancy_execute HOT 3
- add encrypted data_bag or chef_vault docs HOT 5
- Upload this cookbook version 1.1.0 to supermarket and override the existing one HOT 1
- Add ability to pin a Supermarket version HOT 2
- Make Supermarket Upgrade Process Delightful HOT 2
- Custom repository "option" non-functional due to malformed attribute HOT 3
- Only converges successfully when chef-client run by hand + HOME env variable HOT 12
- Need to be able to downgrade Supermarket
- upgrade/downgrade should restart services HOT 3
- Constant :reconfigure action HOT 2
- Error on Setting up Private Super Market HOT 1
- Cannot configure supermarket's sysctl attributes
- Private supermarket installation fails on Amazon Linux 2017.03 HOT 1
- Supermarket fails to install on Amazon Linux 2017.09 HOT 1
- supermarket.json permissions 644, should be 600 HOT 3
- supermarket-omnibus rpm is always downloaded
- support using instance metadata for S3 access HOT 1
- Chef Client 17 Deprecations HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from supermarket-omnibus-cookbook.