11 # define PE_VARIANT__H 13 # if PE__VARIANT_BUNDLE 23 } pe__bundle_replica_t;
25 enum pe__bundle_mount_flags {
26 pe__bundle_mount_none = 0x00,
29 pe__bundle_mount_subdir = 0x01
44 enum pe__container_agent {
45 PE__CONTAINER_AGENT_UNKNOWN,
46 PE__CONTAINER_AGENT_DOCKER,
47 PE__CONTAINER_AGENT_RKT,
48 PE__CONTAINER_AGENT_PODMAN,
51 #define PE__CONTAINER_AGENT_UNKNOWN_S "unknown" 52 #define PE__CONTAINER_AGENT_DOCKER_S "docker" 53 #define PE__CONTAINER_AGENT_RKT_S "rkt" 54 #define PE__CONTAINER_AGENT_PODMAN_S "podman" 56 typedef struct pe__bundle_variant_data_s {
59 int nreplicas_per_host;
66 char *container_network;
69 gchar *container_host_options;
70 char *container_command;
71 char *launcher_options;
72 const char *attribute_target;
80 enum pe__container_agent agent_type;
81 } pe__bundle_variant_data_t;
83 # define get_bundle_variant_data(data, rsc) \ 84 CRM_ASSERT(rsc != NULL); \ 85 CRM_ASSERT(rsc->variant == pe_container); \ 86 CRM_ASSERT(rsc->variant_opaque != NULL); \ 87 data = (pe__bundle_variant_data_t *)rsc->variant_opaque; \