summaryrefslogtreecommitdiff
path: root/spec/data/cookbooks/angrybash/recipes/default.rb
blob: 458a29103e8b0dc9fac0db49df11a8df6c101d3d (plain)
1
2
3
4
5
6
7
8
bash "go off the rails" do
  code <<-END
    for i in localhost 127.0.0.1 #{Socket.gethostname()}
    do
      echo "grant all on *.* to root@'$i' identified by 'a_password'; flush privileges;" | mysql -u root -h 127.0.0.1
    done
   END
end