Last active
August 29, 2015 14:11
-
-
Save obazoud/4010f868b807e2637d7d to your computer and use it in GitHub Desktop.
When a cookbook has been uploaded to chef server ?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- su - opscode-pgsql | |
-- psql -d opscode_chef | |
-- https://github.com/opscode/chef-server-schema/tree/master/deploy | |
SELECT c.name, | |
v.major || '.' || v.minor || '.' || v.patch AS version, | |
v.updated_at, | |
v.created_at | |
FROM cookbooks AS c | |
JOIN cookbook_versions AS v | |
ON c.id = v.cookbook_id | |
ORDER BY c.name, version; | |
SELECT r.name, | |
r.created_at, | |
r.updated_at | |
FROM roles r | |
ORDER BY r.name; | |
SELECT e.name, | |
e.created_at, | |
e.updated_at | |
FROM environments e | |
ORDER BY e.name; | |
SELECT d.name, | |
d.created_at, | |
d.updated_at | |
FROM data_bags d | |
ORDER BY d.name; | |
SELECT d.data_bag_name, | |
d.item_name, | |
d.created_at, | |
d.updated_at | |
FROM data_bag_items d | |
ORDER BY d.data_bag_name, d.item_name; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment