File tree Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -69,3 +69,10 @@ platforms:
69
69
cluster :
70
70
base_os : rhel8
71
71
kernel_release : ' 4.18.0-477.13.1.el8_7.fake-value' # Use 477 version to match 8.8 kernel version available on docker
72
+ - name : rocky8
73
+ driver :
74
+ image : <% if ENV['KITCHEN_ROCKY8_IMAGE'] %> <%= ENV['KITCHEN_ROCKY8_IMAGE'] %> <% else %> dokken/rockylinux-8 <% end %>
75
+ attributes :
76
+ cluster :
77
+ base_os : rocky8
78
+ kernel_release : ' 4.18.0-477.10.1.el8_8.x86_64'
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ lifecycle:
38
38
39
39
case $KITCHEN_PLATFORM_NAME in
40
40
alinux*|redhat* ) export KITCHEN_EC2_USER='ec2-user';;
41
+ rocky* ) export KITCHEN_EC2_USER='rocky';;
41
42
centos* ) export KITCHEN_EC2_USER='centos';;
42
43
ubuntu* ) export KITCHEN_EC2_USER='ubuntu';;
43
44
esac
@@ -127,6 +128,32 @@ platforms:
127
128
attributes :
128
129
cluster :
129
130
base_os : rhel8
131
+ - name : rocky8
132
+ driver_plugin : ec2
133
+ driver :
134
+ <% if ENV['KITCHEN_ROCKY8_AMI'] %>
135
+ # Use the Rocky Linux 8 AMI most similar to the base AMI used to build the ParallelCluster image
136
+ image_id : <%= ENV['KITCHEN_ROCKY8_AMI'] %>
137
+ <% else % >
138
+ image_search :
139
+ name : <% if ENV['KITCHEN_PHASE']=='install' %>Rocky-8-EC2-Base-8*<% else %><%= pcluster_prefix %>-rocky8-hvm-*<% end %>
140
+ architecture : <%= ENV['KITCHEN_ARCHITECTURE'] %>
141
+ <% end % >
142
+ block_device_mappings :
143
+ - device_name : /dev/sda1
144
+ ebs :
145
+ volume_size : <% if (ENV['KITCHEN_VOLUME_SIZE'] || '') == '' %> 35 <% else %> <%= ENV['KITCHEN_VOLUME_SIZE'] %> <% end %>
146
+ volume_type : gp2
147
+ delete_on_termination : true
148
+ <% %w(a b c d e f g h i j k l m n o p q r s t u v w x).each_with_index do | c, i | % >
149
+ - device_name : /dev/xvdb<%= c %>
150
+ virtual_name : ephemeral<%= i %>
151
+ <% end % >
152
+ transport :
153
+ username : rocky
154
+ attributes :
155
+ cluster :
156
+ base_os : rocky8
130
157
- name : centos7
131
158
driver_plugin : ec2
132
159
driver :
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ if [ -e "${SCRIPT}" ]; then
26
26
if [ -n " ${KITCHEN_INSTANCE_HOSTNAME} " ]; then
27
27
case ${KITCHEN_PLATFORM_NAME} in
28
28
alinux* |redhat* ) export KITCHEN_EC2_USER=' ec2-user' ;;
29
+ rocky* ) export KITCHEN_EC2_USER=' rocky' ;;
29
30
centos* ) export KITCHEN_EC2_USER=' centos' ;;
30
31
ubuntu* ) export KITCHEN_EC2_USER=' ubuntu' ;;
31
32
esac
You can’t perform that action at this time.
0 commit comments