Skip to content

Instantly share code, notes, and snippets.

@trekr5
Last active August 29, 2015 14:11
Show Gist options
  • Save trekr5/333cdc499ce88a0972ca to your computer and use it in GitHub Desktop.
Save trekr5/333cdc499ce88a0972ca to your computer and use it in GitHub Desktop.
data1 = ridley.data_bag.create(name: "eight")
data.item.create(id: "credentials --secret-file .chef/encrypted_data_bag_secret",
user: "stone",
password: "kite"
)
# i get an error of undefined local variable or mathod 'secret'
#I also tried:
data1 = ridley.data_bag.create(name: "eight")
data.item.create(id: "credentials" --secret-file .chef/encrypted_data_bag_secret,
user: "stone",
password: "kite"
)
ridley = Ridley.new(
server_url: "http://127.0.0.1:8889" # using chef-zero for testing
client_name: "ace67",
client_key: ".chef/ace67.pem",
ssl: {verify: false},
encrypted_data_bag_secret: "./chef/encrypted_data_bag_secret"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment