Skip to content

Commit bdbc4c8

Browse files
committed
Don't bother setting root password if running in test kitchen
1 parent 90df5a9 commit bdbc4c8

File tree

1 file changed

+2
-2
lines changed
  • cookbooks/boxcutter_users/recipes

1 file changed

+2
-2
lines changed

cookbooks/boxcutter_users/recipes/root.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
# See the License for the specific language governing permissions and
1717
# limitations under the License.
1818

19-
root_password = Boxcutter::OnePassword.op_read('op://Automation-Org/root/hash')
20-
2119
user 'root' do
2220
password root_password
2321
shell '/bin/bash'
2422
comment 'root'
2523
gid 'root'
2624
action :manage
25+
not_if { kitchen? &&
26+
Boxcutter::OnePassword.op_read('op://Automation-Org/root/hash') }
2727
end

0 commit comments

Comments
 (0)