forked from thomasmckay/hammer-cli-csv
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhammer-it
More file actions
executable file
·26 lines (21 loc) · 1.45 KB
/
hammer-it
File metadata and controls
executable file
·26 lines (21 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/csh -f
# Replaced with: rake test TEST=test/setup_test.rb
bundle exec hammer -v csv:organizations --csv-file test/data/organizations.csv
bundle exec hammer -v csv:users --csv-file test/data/users.csv
bundle exec hammer -v csv:operatingsystems --csv-file test/data/operatingsystems.csv
bundle exec hammer -v csv:architectures --csv-file test/data/architectures.csv
bundle exec hammer -v csv:partitiontables --csv-file test/data/partitiontables.csv
bundle exec hammer -v csv:domains --csv-file test/data/domains.csv
bundle exec hammer -v csv:puppetenvironments --csv-file test/data/puppetenvironments.csv
bundle exec hammer -v csv:hosts --csv-file test/data/hosts.csv
bundle exec hammer -v csv:puppetfacts --csv-file test/data/puppetfacts.csv
bundle exec hammer subscription upload --organization-id megacorp --file ~/Downloads/megacorp.zip
echo "Waiting 30s for manifest upload to complete..."
sleep 30
echo "...continuing"
bundle exec hammer -v csv:products --csv-file test/data/products.csv
bundle exec hammer -v csv:lifecycleenv --csv-file test/data/lifecycleenvironments.csv
bundle exec hammer -v csv:systemgroups --csv-file test/data/systemgroups.csv
bundle exec hammer -v csv:systems --csv-file test/data/systems.csv
bundle exec hammer -v csv:activationkeys --csv-file test/data/activationkeys.csv
bundle exec hammer -v csv:roles --csv-file test/data/roles.csv