Revision 952a28c0 snf-deploy/snfdeploy/fabfile.py

b/snf-deploy/snfdeploy/fabfile.py
610 610

  
611 611

  
612 612
@roles("accounts")
613
def astakos_register_pithos_view():
614
    debug(env.host, " * Register pithos view as oauth2 client...")
615

  
616
    pithos_base_url = "https://%s/pithos" % env.env.pithos.fqdn
617

  
618
    cmd = """
619
    snf-manage oauth2-client-add pithos-view --secret=12345 --is-trusted \
620
    --url {0}
621
    """.format('%s/ui/view' % pithos_base_url)
622
    try_run(cmd)
623

  
624

  
625
@roles("accounts")
613 626
def add_user():
614 627
    debug(env.host, " * adding user %s to astakos..." % env.env.user_email)
615 628
    email = env.env.user_email
......
679 692
    snf-manage syncdb --noinput
680 693
    snf-manage migrate im --delete-ghost-migrations
681 694
    snf-manage migrate quotaholder_app
695
    snf-manage migrate oa2
682 696
    """
683 697
    try_run(cmd)
684 698

  

Also available in: Unified diff