basho/puppet-riak — pull request #21 by andyshinn (2013-07-26 21:45:27+00:00)
Title: Failed to call refresh: Could not stop Service[riak]

I'm trying to get a VM up in vagrant with Puppet. Everything works after the second pass. Howeverm the first pass gives me the following output and error starting (stopping?) Riak:

```
Running Puppet with riak.pp...
Notice: /Stage[main]//Service[iptables]/ensure: ensure changed 'running' to 'stopped'
Notice: /Stage[main]/Riak::Config/File[/etc/security/limits.conf]/content: content changed '{md5}667a77a9a360468f97d30f97eb775e47' to '{md5}a5ae0675396f1ae690f5b624c41b6c83'
Notice: /Stage[main]/Riak/File[/etc/riak]/ensure: created
Notice: /Stage[main]/Riak::Vmargs/File[/etc/riak/vm.args]/ensure: created
Notice: /Stage[main]/Riak/Group[riak]/ensure: created
Notice: /Stage[main]/Riak/User[riak]/ensure: created
Notice: /Stage[main]/Riak::Appconfig/File[/var/log/riak]/ensure: created
Notice: /Stage[main]/Riak::Appconfig/File[/var/lib/riak]/ensure: created
Notice: /Stage[main]/Riak::Appconfig/File[/usr/lib/riak]/ensure: created
Notice: /Stage[main]/Riak::Appconfig/File[/etc/riak/app.config]/ensure: created
Notice: /Stage[main]/Riak::Config/Yumrepo[basho-products]/descr: descr changed '' to 'basho packages for $releasever-$basearch'
Notice: /Stage[main]/Riak::Config/Yumrepo[basho-products]/baseurl: baseurl changed '' to 'http://yum.basho.com/el/6/products/$basearch'
Notice: /Stage[main]/Riak::Config/Yumrepo[basho-products]/enabled: enabled changed '' to '1'
Notice: /Stage[main]/Riak::Config/Yumrepo[basho-products]/gpgcheck: gpgcheck changed '' to '1'
Notice: /Stage[main]/Riak::Config/Yumrepo[basho-products]/gpgkey: gpgkey changed '' to 'http://yum.basho.com/gpg/RPM-GPG-KEY-basho'
Notice: /Stage[main]/Riak/Package[riak]/ensure: created
Notice: /Stage[main]/Riak/Service[riak]/ensure: ensure changed 'stopped' to 'running'
Error: /Stage[main]/Riak/Service[riak]: Failed to call refresh: Could not stop Service[riak]: Execution of '/sbin/service riak stop' returned 1:
Error: /Stage[main]/Riak/Service[riak]: Could not stop Service[riak]: Execution of '/sbin/service riak stop' returned 1:
Notice: Finished catalog run in 67.07 seconds
```

My Puppet manifest for this VM:

```
service { 'iptables':
ensure => 'stopped',
enable => false,
}

class { 'riak':
vmargs_cfg => {
'-name' => "riak@0.0.0.0",
}
}
```

Any idea why this might be happening?