diff --git a/molecule/mask_passwords/converge.yml b/molecule/mask_passwords/converge.yml index e07b2e37..afb7f2e3 100644 --- a/molecule/mask_passwords/converge.yml +++ b/molecule/mask_passwords/converge.yml @@ -31,14 +31,377 @@ - user: other password: amqotherpass roles: [ consumer, producer ] + - user: other01 + password: amqotherpass + roles: [ pub_user ] + - user: other02 + password: amqotherpass + roles: [ pub_user ] + - user: other03 + password: amqotherpass + roles: [ pub_user ] + - user: other04 + password: amqotherpass + roles: [ pub_user ] + - user: other05 + password: amqotherpass + roles: [ pub_user ] + - user: other06 + password: amqotherpass + roles: [ pub_user ] + - user: other07 + password: amqotherpass + roles: [ pub_user ] + - user: other08 + password: amqotherpass + roles: [ pub_user ] + - user: other09 + password: amqotherpass + roles: [ pub_user ] + - user: other10 + password: amqotherpass + roles: [ pub_user ] + - user: other11 + password: amqotherpass + roles: [ pub_user ] + - user: other12 + password: amqotherpass + roles: [ pub_user ] + - user: other13 + password: amqotherpass + roles: [ pub_user ] + - user: other14 + password: amqotherpass + roles: [ pub_user ] + - user: other15 + password: amqotherpass + roles: [ pub_user ] + - user: other16 + password: amqotherpass + roles: [ pub_user ] + - user: other17 + password: amqotherpass + roles: [ pub_user ] + - user: other18 + password: amqotherpass + roles: [ pub_user ] + - user: other19 + password: amqotherpass + roles: [ pub_user ] + - user: other20 + password: amqotherpass + roles: [ pub_user ] + - user: other21 + password: amqotherpass + roles: [ pub_user ] + - user: other22 + password: amqotherpass + roles: [ pub_user ] + - user: other23 + password: amqotherpass + roles: [ pub_user ] + - user: other24 + password: amqotherpass + roles: [ pub_user ] + - user: other25 + password: amqotherpass + roles: [ pub_user ] + - user: other26 + password: amqotherpass + roles: [ pub_user ] + - user: other27 + password: amqotherpass + roles: [ pub_user ] + - user: other28 + password: amqotherpass + roles: [ pub_user ] + - user: other29 + password: amqotherpass + roles: [ pub_user ] + - user: other30 + password: amqotherpass + roles: [ pub_user ] + - user: other31 + password: amqotherpass + roles: [ pub_user ] + - user: other32 + password: amqotherpass + roles: [ pub_user ] + - user: other33 + password: amqotherpass + roles: [ pub_user ] + - user: other34 + password: amqotherpass + roles: [ pub_user ] + - user: other35 + password: amqotherpass + roles: [ pub_user ] + - user: other36 + password: amqotherpass + roles: [ pub_user ] + - user: other37 + password: amqotherpass + roles: [ pub_user ] + - user: other38 + password: amqotherpass + roles: [ pub_user ] + - user: other39 + password: amqotherpass + roles: [ pub_user ] + - user: other40 + password: amqotherpass + roles: [ pub_user ] + - user: other41 + password: amqotherpass + roles: [ pub_user ] + - user: other42 + password: amqotherpass + roles: [ pub_user ] + - user: other43 + password: amqotherpass + roles: [ pub_user ] + - user: other44 + password: amqotherpass + roles: [ pub_user ] + - user: other45 + password: amqotherpass + roles: [ pub_user ] + - user: other46 + password: amqotherpass + roles: [ pub_user ] + - user: other47 + password: amqotherpass + roles: [ pub_user ] + - user: other48 + password: amqotherpass + roles: [ pub_user ] + - user: other49 + password: amqotherpass + roles: [ pub_user ] + - user: other50 + password: amqotherpass + roles: [ pub_user ] + - user: other51 + password: amqotherpass + roles: [ pub_user ] + - user: other52 + password: amqotherpass + roles: [ pub_user ] + - user: other53 + password: amqotherpass + roles: [ pub_user ] + - user: other54 + password: amqotherpass + roles: [ pub_user ] + - user: other55 + password: amqotherpass + roles: [ pub_user ] + - user: other56 + password: amqotherpass + roles: [ pub_user ] + - user: other57 + password: amqotherpass + roles: [ pub_user ] + - user: other58 + password: amqotherpass + roles: [ pub_user ] + - user: other59 + password: amqotherpass + roles: [ pub_user ] + - user: other60 + password: amqotherpass + roles: [ pub_user ] - user: otherencoded password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) roles: [ admin ] + - user: otherencoded01 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded02 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded03 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded04 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded05 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded06 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded07 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded08 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded09 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded10 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded11 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded12 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded13 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded14 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded15 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded16 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded17 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded18 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded19 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded20 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded21 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded22 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded23 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded24 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded25 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded26 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded27 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded28 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded29 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded30 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded31 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded32 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded33 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded34 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded35 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded36 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded37 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded38 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded39 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded40 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded41 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded42 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded43 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded44 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded45 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded46 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded47 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded48 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded49 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded50 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded51 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded52 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded53 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded54 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded55 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded56 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded57 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded58 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded59 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] + - user: otherencoded60 + password: ENC(2048:A403CF9448176AA4B4F2115755A0EE5F0BCCCC2E30DC435A1DDC6C65B2D41019:EC39BB29552E97F9EAEF68FC7799D0A67AA93E1834582007133AF65BA3AACD5B8454ACFD0531CCBA670E0A327A33572717997C6844A11607FD262C5CFAFED800) + roles: [ pub_user ] activemq_roles: - name: admin permissions: [ createNonDurableQueue, deleteNonDurableQueue, createDurableQueue, deleteDurableQueue, createAddress, deleteAddress, consume, browse, send, manage ] - name: Scientists permissions: [ createNonDurableQueue, deleteNonDurableQueue, createDurableQueue, deleteDurableQueue, createAddress, deleteAddress, consume, browse, send, manage ] + - match: test.v1.# + name: pub_user + permissions: [ createAddress, createDurableQueue, createNonDurableQueue, deleteAddress, deleteDurableQueue, deleteNonDurableQueue, manage, send ] activemq_acceptors: - name: artemis bind_address: "{{ activemq_host }}" diff --git a/roles/activemq/tasks/mask_password.yml b/roles/activemq/tasks/mask_password.yml index 4c326cd9..476f3b59 100644 --- a/roles/activemq/tasks/mask_password.yml +++ b/roles/activemq/tasks/mask_password.yml @@ -3,13 +3,19 @@ block: - name: Parse passwd hash for existing user ansible.builtin.set_fact: - existing_user: "{{ existing_users.content | b64decode | regex_search('\\b' + item.user + ' ?= ?ENC\\([0-9]+:([^:]+):([^)]+)\\)', '\\1', '\\2') | default([]) }}" + existing_user: "{{ existing_users.content | b64decode + | regex_search('\\b' + item.user + ' ?= ?ENC\\([0-9]+:([^:]+):([^)]+)\\)', '\\1', '\\2') | default([]) }}" mask_pwd: '' + when: + - not item.password is defined or not item.password is regex('^ENC\\([0-9]{4,}:[^:]+:[^:]+\\)') + - name: Parse passwd for existing user salt ansible.builtin.set_fact: - hash_password: "{{ item.password | middleware_automation.amq.pbkdf2_hmac(hashname=activemq_mask_password_hashname, iterations=activemq_mask_password_iterations, hexsalt=existing_user[0]) }}" + hash_password: "{{ item.password | middleware_automation.amq.pbkdf2_hmac( + hashname=activemq_mask_password_hashname, iterations=activemq_mask_password_iterations, hexsalt=existing_user[0]) }}" when: existing_user | length > 0 no_log: true + - name: Get masked password for user ansible.builtin.command: "{{ activemq.instance_home }}/bin/artemis mask --hash {{ '--password-codec' if activemq_password_codec != 'org.apache.activemq.artemis.utils.DefaultSensitiveStringCodec' else '' }} -- '{{ item.password }}'" become: true @@ -17,25 +23,39 @@ register: mask_pwd changed_when: false no_log: true - when: existing_user | length == 0 or hash_password != existing_user[1] + when: + - not item.password is defined or not item.password is regex('^ENC\\([0-9]{4,}:[^:]+:[^:]+\\)') + - existing_user | length == 0 or hash_password != existing_user[1] + - name: Add new masked password to users list ansible.builtin.set_fact: - masked_users: "{{ masked_users | default([]) + [{ 'user': item.user, 'password': mask_pwd.stdout | regex_search('result: (.+)', '\\1', multiline=true) | first, 'roles': item.roles }] }}" + masked_users: "{{ masked_users | default([]) + + [{ 'user': item.user, + 'password': mask_pwd.stdout | regex_search('result: (.+)', '\\1', multiline=true) | first, + 'roles': item.roles }] }}" no_log: true when: - existing_user | length == 0 or hash_password != existing_user[1] - item.password is defined and item.password | length > 0 - not item.password is regex('^ENC\\([0-9]{4,}:[^:]+:[^:]+\\)') + - name: Add already masked password to users list ansible.builtin.set_fact: - masked_users: "{{ masked_users | default([]) + [{ 'user': item.user, 'password': item.password | regex_search('ENC\\((.+)\\)', '\\1', multiline=true) | first, 'roles': item.roles }] }}" + masked_users: "{{ masked_users | default([]) + + [{ 'user': item.user, + 'password': item.password | regex_search('ENC\\((.+)\\)', '\\1', multiline=true) | first, + 'roles': item.roles }] }}" no_log: true when: - item.password is defined and item.password | length > 0 - item.password is regex('^ENC\\([0-9]{4,}:[^:]+:[^:]+\\)') + - name: Add existing user to users list ansible.builtin.set_fact: - masked_users: "{{ masked_users | default([]) + [{ 'user': item.user, 'password': activemq_mask_password_iterations | string + ':' + existing_user[0] + ':' + existing_user[1], 'roles': item.roles }] }}" + masked_users: "{{ masked_users | default([]) + + [{ 'user': item.user, + 'password': activemq_mask_password_iterations | string + ':' + existing_user[0] + ':' + existing_user[1], + 'roles': item.roles }] }}" no_log: true when: - existing_user | length > 0