Questions tagged [itamae]

Simple and lightweight configuration management tool inspired by Chef.

6 questions
7
votes
1 answer

Can I use ssh config name when using Itamae

I'm using Itamae with a command like this: itamae ssh -u ironsand -h xxx.xxx.xxx.xxx cookbooks/user.rb The ssh configuration are saved with a name my_ssh_config. Can I use the ssh config name as a argument of itamae ssh? my ~/.ssh/config Host…
ironsand
  • 14,329
  • 17
  • 83
  • 176
2
votes
1 answer

How to change file attributes by Itamae that exists alreasy in server

I want to change file attributes by Itamae that exists already in server. I tried like: file '/usr/local/bin/jobber' do action :nothing owner 'jobber_client' end and file '/usr/local/bin/jobber' do action :nothing user…
ironsand
  • 14,329
  • 17
  • 83
  • 176
1
vote
2 answers

How to setuid by using Itamae

I want to change file attributes using Itamae, so I wrote this: file '/usr/local/bin/jobber' do action :edit owner 'jobber_client' group 'root' mode '04755' end The owner and group attributes were changed as expected, but mode only changed…
ironsand
  • 14,329
  • 17
  • 83
  • 176
0
votes
1 answer

How to solve a error "stdout | fatal: A branch named 'deploy-old' already exists."

When using git resource I got following error: INFO : Recipe: /Users/ironsand/dev/itamae_myserver/recipe.rb ERROR : stdout | fatal: A branch named 'deploy-old' already exists. ERROR : Command `cd /opt/my_project && git branch -m deploy-old`…
ironsand
  • 14,329
  • 17
  • 83
  • 176
0
votes
0 answers

How to get distribution code name by using Itamae and ohai

I want to get distribution code name by using Itamae. recipe.rb require 'pp' pp node[:platform] #=> ubuntu pp node[:platform_version] #=> 14.04 pp node[:lsb] #=> nil pp node[:codename] #=> nil As you see I could get os name and version of it, but…
ironsand
  • 14,329
  • 17
  • 83
  • 176
0
votes
1 answer

uninitialized constant Specinfra::Command::Linuxmint error with Itamae

I just installed LinuxMint17 Cinanmon in windows virtualbox environment and install ruby and itamae by: sudo apt-get install ruby sudo gem i itamae Then create a recipe.rb: package 'git' and run it by sudo itamae local recipe.rb, then I got…
ironsand
  • 14,329
  • 17
  • 83
  • 176